PhotoView icon indicating copy to clipboard operation
PhotoView copied to clipboard

Add configuration for MavenCentral publishing

Open zsmb13 opened this issue 4 years ago • 1 comments

Adds build configuration to publish the library to MavenCentral, based on this article and this library's config.

This will require the following inputs:

  • signing.keyId: the ID of the GPG key pair used for signing, the last eight characters of its fingerprint
  • signing.password: the passphrase of the key pair
  • signing.secretKeyRingFile: the location of the exported private key
  • ossrhUsername and osshrPassword: login credentials for https://oss.sonatype.org/
  • stagingProfileId: value from Sonatype

Usage:

  • Set the values described above in local.properties or environment variables
  • ./gradlew assembleRelease (build)
  • ./gradlew publishReleasePublicationToSonatypeRepository (sign and upload artifact to Sonatype)
  • ./gradlew closeAndReleaseRepository (close and release Sonatype repo)

I didn't include CI config in the first draft, but it would be fairly easy and convenient to plug this all into GitHub Actions.

zsmb13 avatar Jan 18 '21 13:01 zsmb13

bump please

ursusursus avatar Feb 06 '23 19:02 ursusursus