-
Notifications
You must be signed in to change notification settings - Fork 399
/
dorelease.sh
executable file
·21 lines (18 loc) · 787 Bytes
/
dorelease.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# Release instructions
# 1. Follow the gpg setup instructions: http://central.sonatype.org/pages/working-with-pgp-signatures.html
# a. gpg2 --export-secret-keys > ~/.gnupg/secring.gpg
# b. gpg2 --list-keys --keyid-format short
# 2. In ~/.gradle add:
# sonatypeUsername=your sonatype user name
# sonatypePassword=password in vault for oss sonatype<ensure newline>
#
# signing.keyId=generated key in short format
# signing.password=password for gpg key
# signing.secretKeyRingFile=/Users/username/.gnupg/secring.gpg
#
# 3. ./dorelease.sh
# 4. Go to UI at: https://oss.sonatype.org
# 5. Login as sonatypeUsername
# 6. Follow the instructions here: http://central.sonatype.org/pages/releasing-the-deployment.html
./gradlew --refresh-dependencies clean test uploadArchives