File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ] && [ "$bin
12
12
-PbintrayUser=" ${bintrayUser} " -PbintrayKey=" ${bintrayKey} " \
13
13
-PsonatypeUsername=" ${sonatypeUsername} " -PsonatypePassword=" ${sonatypePassword} " \
14
14
-PversionSuffix=" -SNAPSHOT" \
15
+ -PbuildNumber=" $TRAVIS_BUILD_NUMBER " \
15
16
build artifactoryPublish --stacktrace
16
17
17
18
elif [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_TAG " != " " ] && [ " $bintrayUser " != " " ] ; then
Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ if (project.hasProperty('bintrayUser') && project.hasProperty('bintrayKey')) {
33
33
defaults {
34
34
publications(publishing. publications. maven)
35
35
}
36
+
37
+ if (project. hasProperty(' buildNumber' )) {
38
+ clientConfig. info. setBuildNumber(project. property(' buildNumber' ). toString())
39
+ }
36
40
}
37
41
}
38
42
tasks. named(" artifactoryPublish" ). configure {
You can’t perform that action at this time.
0 commit comments