Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.2 KB

HOW_TO_PUBLISH_TO_MAVEN.md

File metadata and controls

30 lines (22 loc) · 1.2 KB

How to publish this project to Maven Nexus repository

This project has moved from JCenter to Maven Central (Nexus repository), therefore publishing this project has now different workflow. To publish, make sure to follow these steps based on this blog:

  1. Configure the the library version in build.gradle.

  2. Create a GPG key:

    > gpg --full-generate-key
    > gpg --export-secret-keys 1D9BB9FE > secert-keys.gpg
    
    # upload your public key to a public server so that sonatype can find it. If that doesn't work, you can also upload manually at http://keys.gnupg.net:11371/
    > gpg --keyserver hkp://pool.sks-keyservers.net --send-keys 1D9BB9FE
    
  3. Configure your credentials in your ~/.gradle/gradle.properties file:

    signing.keyId=[gpg key id]
    signing.password=[gpg key password]
    signing.secretKeyRingFile=[gpg key file location to `secert-keys.gpg`]
    
    ossrhUsername=[sonatype username e.g: JIRA username]
    ossrhPassword=[sonatype password e.g: JIRA password]
    
  4. Upload the artifacts:

    ./gradlew uploadArchives