Java implementation of the Quilt Packaging API
./gradlew check || open lib/build/reports/tests/test/index.html
To enable debug logging, set the environment variable LOG4J_DEBUG=true
:
LOG4J_DEBUG=true ./gradlew check
./gradlew useLatestVersions ./gradlew check
This project is published to Maven Central using SonatypeHost.CENTRAL_PORTAL
from the vanniktech.github.io/gradle-maven-publish-plugin.
For the publishing to work, you need to:
~/.gradle/gradle.properties
or ./gradle.properties
file:mavenCentralUsername=api_token_username
mavenCentralPassword=api_token_password_without_wrapper
signing.keyId=12345678
signing.password=some_password
signing.secretKeyRingFile=/Users/yourusername/.gnupg/secring.gpg
Note this requires you to export to the secring.gpg
file from your GPG keychain. You can do this with the following command:
gpg --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg
To publish a new version, run:
./gradlew publish
This will build the project, run the tests, and publish the new version to Maven Central.
Next, you need to go to the Sonatype Central Portal and log in with your username/password. You will see the new version in under Publishing Settings -> Deployments.
Once it has been "Validated", you need to click "Publish" to make the new version available to the public. It should show up in the Maven Central Repository in five minutes or so.