-
Notifications
You must be signed in to change notification settings - Fork 164
Publishing TonY to Maven (for admins)
Keqiu Hu edited this page Aug 16, 2021
·
1 revision
Follow this guide to generate a key pair using GPG. Publish your public key.
Create a Nexus account at https://oss.sonatype.org/ and request access to publish to com.linkedin.tony. Here's an example Jira ticket: https://issues.sonatype.org/browse/OSSRH-47350.
Configure your ~/.gradle/gradle.properties file:
# signing plugin uses these
signing.keyId=...
signing.secretKeyRingFile=/home/<ldap>/.gnupg/secring.gpg
signing.password=...
# maven repo credentials
mavenUser=...
mavenPassword=...
# gradle-nexus-staging-plugin uses these
nexusUsername=<sameAsMavenUser>
nexusPassword=<sameAsMavenPassword>
Now you can publish and release artifacts by running ./gradlew publish closeAndReleaseRepository.