- Get API username and password
- Modify
~/.gradle/gradle.propertiesto contain your secrets. See https://vanniktech.github.io/gradle-maven-publish-plugin/central/#secrets. Especially have your private key stored insinging.key. Hints are available. - Publish a snapshot:
./gradlew :jablib:publishAllPublicationsToMavenCentralRepository - You will find the upload at https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/org/jabref/jablib/
The Vanniktech Gradle Maven Publish Plugin is used for it.