Skip to content

1abhishekpandey/AndroidLibrary

Repository files navigation

AndroidLibrary

In your local properties add the following fields:

signing.keyId=
signing.password=
signing.key=
ossrhUsername=
ossrhPassword=
sonatypeStagingProfileId=

keyId: The last eight digits of the GPG key that we generated earlier. password: Passphrase of the key pair. key: base64 encoded format of the private key. ossrhUsername and ossrhPassword: Details submitted at the time of registration in Sonatype JIRA. To obtain sonatypeStagingProfileId, head over to https://s01.oss.sonatype.org and log in with the Sonatype credentials. Now click on StagingProfiles in the left panel, select your profile, then look for the ID in the URL. Have a look: image.png

To release type the following command:

  1. ./gradlew AbhishekFirstLibrary:publishReleasePublicationToSonatypeRepository
  2. ./gradlew AbhishekFirstLibrary:publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository

Explanation:

  1. ./gradlew [Your Android Library name]:publishReleasePublicationToSonatypeRepository -> In this you have to manually release by logging in to sonatype
  2. ./gradlew [Your Android Library name]:publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository -> In this release will be done at one go. For more detail, refer to the articles mentioned in the reference

Medium Reference

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages