Skip to content

Commit 7bd6669

Browse files
committed
Build 0.0.1
1 parent f1f9504 commit 7bd6669

File tree

3 files changed

+31
-5
lines changed

3 files changed

+31
-5
lines changed

build.gradle

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff 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

78
subprojects {
@@ -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

138160
task build {

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
version=1.0.0-SNAPSHOT
1+
version=0.0.1
22

33
PROJECT_GROUP = com.graphql-java-kickstart
44
PROJECT_NAME = graphql-spring-webclient
55
PROJECT_DESC = GraphQL Spring Web client
66
PROJECT_GIT_REPO_URL = https://github.com/graphql-java-kickstart/graphql-spring-webclient
7-
PROJECT_LICENSE = GNU v3
7+
PROJECT_LICENSE = GPL-3.0
88
PROJECT_LICENSE_URL = https://github.com/graphql-java-kickstart/spring-spring-webclient/blob/master/LICENSE.md
99
PROJECT_DEV_ID = oliemansm
1010
PROJECT_DEV_NAME = Michiel Oliemans

travis-build.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ EOL
1414
chmod 600 $HOME/.netrc
1515
}
1616

17-
# && [ "${RELEASE}" = "true" ]
1817
if [ "${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
2327
else
2428
echo "Verify"
2529
./gradlew clean assemble && ./gradlew check --info

0 commit comments

Comments
 (0)