Skip to content

Commit 7e59adf

Browse files
committed
Bintray upload
1 parent 26b807a commit 7e59adf

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

build.gradle

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ buildscript {
99
}
1010
plugins {
1111
id "com.jfrog.bintray" version "1.8.4"
12+
id "com.jfrog.artifactory" version "1.8.4"
1213
id 'net.researchgate.release' version '2.7.0'
1314
}
1415

@@ -175,6 +176,31 @@ bintray {
175176
}
176177
}
177178

179+
artifactory {
180+
contextUrl = 'https://oss.jfrog.org'
181+
resolve {
182+
repository {
183+
repoKey = 'libs-release'
184+
}
185+
}
186+
publish {
187+
repository {
188+
if (project.version.endsWith("-SNAPSHOT")) {
189+
repoKey = 'oss-snapshot-local'
190+
} else {
191+
repoKey = 'oss-release-local'
192+
}
193+
194+
username = System.getenv('BINTRAY_USER')
195+
password = System.getenv('BINTRAY_API_KEY')
196+
}
197+
defaults {
198+
publications 'maven'
199+
properties = [ 'bintray.repo': 'graphql-java-kickstart/releases', 'bintray.package': 'com.graphql-java-kickstart:graphql-java-servlet', 'bintray.version': project.version.toString() ]
200+
}
201+
}
202+
}
203+
178204
idea {
179205
project {
180206
languageLevel = '1.8'

travis-build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ "${TRAVIS_BRANCH}" = "master" ];
2020
if [ "${RELEASE}" = "true" ]; then
2121
echo "Deploying release to Bintray"
2222
./gradlew clean assemble release -Prelease.useAutomaticVersion=true && ./gradlew check --info
23-
else
24-
echo "Deploying snapshot to Bintray"
25-
./gradlew clean assemble bintrayUpload && ./gradlew check --info
23+
# else
24+
# echo "Deploying snapshot to Bintray"
25+
# ./gradlew clean assemble bintrayUpload && ./gradlew check --info
2626
fi
2727
fi

0 commit comments

Comments
 (0)