File tree Expand file tree Collapse file tree 3 files changed +31
-5
lines changed
Expand file tree Collapse file tree 3 files changed +31
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ plugins {
22 id " com.jfrog.bintray" version " $LIB_BINTRAY_PLUGIN_VER "
33 id ' net.researchgate.release' version " $LIB_RELEASE_PLUGIN_VER "
44 id " org.springframework.boot" version " $LIB_SPRING_BOOT_VER " apply false
5+ id " com.jfrog.artifactory" version " 4.15.1" apply false
56}
67
78subprojects {
@@ -11,6 +12,7 @@ subprojects {
1112 apply plugin : ' maven-publish'
1213 apply plugin : " com.jfrog.bintray"
1314 apply plugin : " io.spring.dependency-management"
15+ apply plugin : ' com.jfrog.artifactory'
1416
1517 group " $PROJECT_GROUP "
1618
@@ -66,7 +68,7 @@ subprojects {
6668
6769 java {
6870 withSourcesJar()
69- withJavadocJar()
71+ // withJavadocJar()
7072 }
7173
7274 publishing {
@@ -133,6 +135,26 @@ subprojects {
133135 }
134136 }
135137 }
138+
139+ artifactory {
140+ contextUrl = ' http://oss.jfrog.org'
141+ publish {
142+ repository {
143+ repoKey = ' oss-snapshot-local'
144+ username = System . env. BINTRAY_USER ?: project. findProperty(' BINTRAY_USER' ) ?: ' '
145+ password = System . env. BINTRAY_PASS ?: project. findProperty(' BINTRAY_PASS' ) ?: ' '
146+ }
147+ defaults {
148+ publications(' mainProjectPublication' )
149+ publishArtifacts = true
150+ publishPom = true
151+ }
152+ }
153+ resolve {
154+ repoKey = ' jcenter'
155+ }
156+ clientConfig. info. setBuildNumber(System . getProperty(' build.number' ))
157+ }
136158}
137159
138160task build {
Original file line number Diff line number Diff line change 1- version =1. 0.0-SNAPSHOT
1+ version =0.0.1
22
33PROJECT_GROUP = com.graphql-java-kickstart
44PROJECT_NAME = graphql-spring-webclient
55PROJECT_DESC = GraphQL Spring Web client
66PROJECT_GIT_REPO_URL = https://github.com/graphql-java-kickstart/graphql-spring-webclient
7- PROJECT_LICENSE = GNU v3
7+ PROJECT_LICENSE = GPL-3.0
88PROJECT_LICENSE_URL = https://github.com/graphql-java-kickstart/spring-spring-webclient/blob/master/LICENSE.md
99PROJECT_DEV_ID = oliemansm
1010PROJECT_DEV_NAME = Michiel Oliemans
Original file line number Diff line number Diff line change 1414 chmod 600 $HOME /.netrc
1515}
1616
17- # && [ "${RELEASE}" = "true" ]
1817if [ " ${TRAVIS_PULL_REQUEST} " = " false" ] && [ " ${TRAVIS_BRANCH} " = " master" ]; then
18+ if [ " ${RELEASE} " = " true" ]; then
1919 echo " Deploying release to Bintray"
2020 saveGitCredentials
21- # git checkout -f ${TRAVIS_BRANCH}
2221 ./gradlew clean assemble && ./gradlew check --info && ./gradlew bintrayUpload -x check --info
22+ else
23+ echo " Deploying snapshot"
24+ saveGitCredentials
25+ ./gradlew artifactoryPublish -Dsnapshot=true -Dbuild.number=" ${TRAVIS_BUILD_NUMBER} "
26+ fi
2327else
2428 echo " Verify"
2529 ./gradlew clean assemble && ./gradlew check --info
You can’t perform that action at this time.
0 commit comments