$ ./mvnw package
Build artifacts will be placed in groovy-shell/target/.
-
GPG key. The signing key is stored in
.keys/directory (gitignored). On a fresh machine, copy.keys/from a teammate or company secrets. No system-level GPG import needed — the Makefile usesGNUPGHOMEdirectly. -
Sonatype Central token. Generate at central.sonatype.com → Account → "Generate User Token". Export as environment variables:
export SONATYPE_USERNAME=<token username> export SONATYPE_PASSWORD=<token password>These are read by
.mvn/settings.xmlat deploy time.
$ make deploy
This runs ./mvnw clean deploy -Prelease -s .mvn/settings.xml -Drevision=<calver>,
which:
- Generates a CalVer version (
YYYY.MM.DD.HHMM) - Compiles, builds
-sources.jarand-javadoc.jar - Signs everything with GPG
- Uploads to Sonatype Central Portal and waits for publication