- Export these environment variables:
OSS_USER
,OSS_PASS
(login for http://oss.sonatype.org/) - Export these environment variables:
ORG_GRADLE_PROJECT_signingKey
,ORG_GRADLE_PROJECT_signingPassword
.
ORG_GRADLE_PROJECT_signingKey
is an ascii-armored encrypted gpg private key, so this variable contains a multiline string.
It can be initialized like this:
export ORG_GRADLE_PROJECT_signingKey=`cat secret.asc`
Now you can run ./release core ${MY_VERSION}
or ./release annotations ${MY_VERSION}
.