File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,18 @@ dependencies {
2424 testCompile ' junit:junit:4.12'
2525}
2626
27+ tasks. bintrayUpload. dependsOn tasks. check
28+ tasks. artifactoryPublish. dependsOn tasks. check
29+
30+ gradle. taskGraph. whenReady { graph ->
31+ tasks. bintrayUpload. onlyIf {
32+ graph. hasTask(' :final' ) || graph. hasTask(' :candidate' )
33+ }
34+ tasks. artifactoryPublish. onlyIf {
35+ graph. hasTask(' :snapshot' ) || graph. hasTask(' :devSnapshot' )
36+ }
37+ }
38+
2739bintray {
2840 user = System . getenv(' BINTRAY_USER' )
2941 key = System . getenv(' BINTRAY_KEY' )
Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
1111 ./gradlew build $SWITCHES
1212elif [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_TAG " == " " ]; then
1313 echo -e ' Build Branch with Snapshot => Branch [' $TRAVIS_BRANCH ' ]'
14- # ./gradlew -Prelease.travisci=true snapshot $SWITCHES
15- ./gradlew build $SWITCHES
14+ ./gradlew -Prelease.travisci=true snapshot $SWITCHES
1615elif [ " $TRAVIS_PULL_REQUEST " == " false" ] && [ " $TRAVIS_TAG " != " " ]; then
1716 echo -e ' Build Branch for Release => Branch [' $TRAVIS_BRANCH ' ] Tag [' $TRAVIS_TAG ' ]'
1817 case " $TRAVIS_TAG " in
You can’t perform that action at this time.
0 commit comments