PhotoView
PhotoView copied to clipboard
Add configuration for MavenCentral publishing
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 fingerprintsigning.password: the passphrase of the key pairsigning.secretKeyRingFile: the location of the exported private keyossrhUsernameandosshrPassword: login credentials for https://oss.sonatype.org/stagingProfileId: value from Sonatype
Usage:
- Set the values described above in
local.propertiesor 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.
bump please