Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Commit

Permalink
update snapshot script to use printVersion task (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahsnow1 committed May 10, 2017
1 parent 1b50d46 commit 731e5df
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions scripts/deploy-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
#
# Builds and uploads snapshot AARs to https://oss.sonatype.org/content/repositories/snapshots/com/mapzen/.
#

while read -r line || [[ -n "$line" ]]; do
if [[ $line =~ .*version=.*-SNAPSHOT.* ]]
then
./gradlew uploadArchives -PsonatypeUsername=$SONATYPE_NEXUS_SNAPSHOTS_USERNAME \
-PsonatypePassword=$SONATYPE_NEXUS_SNAPSHOTS_PASSWORD
break
fi
done < "gradle.properties"
version=$(./gradlew -q printVersion)
if [[ $version =~ .*-SNAPSHOT.* ]]
then
./gradlew uploadArchives -PsonatypeUsername=$SONATYPE_NEXUS_SNAPSHOTS_USERNAME \
-PsonatypePassword=$SONATYPE_NEXUS_SNAPSHOTS_PASSWORD
break
fi

0 comments on commit 731e5df

Please sign in to comment.