Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 899 Bytes

release.md

File metadata and controls

28 lines (24 loc) · 899 Bytes

how to release to maven central

some envs are stored in local ~/.zshrc

export JRELEASER_GPG_PASSPHRASE=
export JRELEASER_GITHUB_TOKEN=
export JRELEASER_DEPLOY_MAVEN_MAVENCENTRAL_SONATYPE_USERNAME=
export JRELEASER_DEPLOY_MAVEN_MAVENCENTRAL_SONATYPE_PASSWORD=

gpg files are stored in local vm.

        publicKey = '/Users/edward/.jreleaser/public.pgp'
        secretKey = '/Users/edward/.jreleaser/private.pgp'

Now it's manually uploaded by guide here. So the commands are:

./gradlew clean
./gradlew publish
./gradlew jreleaserFullRelease
# upload this bundle zip:
ls ./build/jreleaser/deploy/mavenCentral/sonatype

It should use gradle command by guide here