1 if [ -z "$SONATYPE_USER" ]
2 then
3 echo "Please define SONATYPE_USER"
4 exit 1
5 fi
6
7 if [ -z "$SONATYPE_PASSWORD" ]
8 then
9 echo "Please define SONATYPE_PASSWORD"
10 exit 1
11 fi
12
13 ./gradlew uploadArchives && ./gradlew closeAndPromoteRepository
14
15