Skip to content

Commit 49e74ca

Browse files
committed
snapshot releases now auto append "-SNAPSHOT"
1 parent 7d8c034 commit 49e74ca

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,13 @@ allprojects {
3434
buildToolsVersion='27.0.3'
3535
supportLibraryVersion='27.1.1'
3636
okhttpVersion='3.10.0'
37+
38+
sdkVersion += project.getProperties().get("versionSuffix", "")
3739
}
3840
}
3941

42+
43+
4044
task clean(type: Delete) {
4145
delete rootProject.buildDir
4246
}

snapshot_release.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@
22

33
echo "Uploading SNAPSHOT to maven repository..."
44

5-
rm -rf build/maven-releases
65
rm -rf build/maven-snapshots
76
rm -rf maven-repository
87

9-
./gradlew clean uploadArchives
8+
./gradlew clean uploadArchives -PversionSuffix=-SNAPSHOT
109

1110
if [ -d "build/maven-snapshots" ]; then
1211
git clone --depth 1 -b snapshots [email protected]:snabble/maven-repository.git maven-repository
1312
fi
1413

1514
cd maven-repository
1615

17-
cp -r ../build/maven-releases/* . 2>/dev/null
1816
cp -r ../build/maven-snapshots/* . 2>/dev/null
1917

2018
git add *

0 commit comments

Comments
 (0)