Skip to content

Commit 63d4a26

Browse files
NiteshKantstevegury
authored andcommitted
Fix to publish Snapshots to jfrog (#199)
#### Problem Currently travis is publishing 0.2.3-SNAPSHOT artifacts for 0.5.x branch. #### Modifications I am not 100% sure if this is the correct way to make travis publish the correct version, but it is a way! Modified `buildViaTravis.sh` to override the version, just for snapshot builds. #### Result Correct version number for snapshot.
1 parent 8d3c9ad commit 63d4a26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repositories {
3939
}
4040
4141
dependencies {
42-
compile 'io.reactivesocket:reactivesocket:0.0.1-SNAPSHOT'
42+
compile 'io.reactivesocket:reactivesocket:0.5.0-SNAPSHOT'
4343
}
4444
```
4545

gradle/buildViaTravis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
66
./gradlew -Prelease.useLastTag=true build
77
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" == "" ]; then
88
echo -e 'Build Branch with Snapshot => Branch ['$TRAVIS_BRANCH']'
9-
./gradlew -Prelease.travisci=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" build snapshot --stacktrace
9+
./gradlew -Prelease.version=0.5.0-SNAPSHOT -Prelease.travisci=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" build snapshot --stacktrace
1010
elif [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_TAG" != "" ]; then
1111
echo -e 'Build Branch for Release => Branch ['$TRAVIS_BRANCH'] Tag ['$TRAVIS_TAG']'
1212
./gradlew -Prelease.travisci=true -Prelease.useLastTag=true -PbintrayUser="${bintrayUser}" -PbintrayKey="${bintrayKey}" -PsonatypeUsername="${sonatypeUsername}" -PsonatypePassword="${sonatypePassword}" final --stacktrace

0 commit comments

Comments
 (0)