Skip to content

Notes for Developers and Maintainers

Philipp Niedermayer edited this page May 21, 2022 · 5 revisions

Build

  • The project uses JAVA with JDK version 11

Publish a new release

The publishing process is largely automated via the publish.gradle files, thanks to the excellent tutorial at Publishing Android libraries to MavenCentral in 2021.
Integration with GitHub action is also described, but currently not used. Therefore you have to:

  • Create or update the local.properties file in the project root to supply the required credentials
    # GPG signing key (mandatory for maven central)
    # secretKeyRingFile must be in binary format, e.g. gpg --export-secret-keys XXXX > XXXX.gpg
    signing.keyId=XXXX
    signing.password=XXXX
    signing.secretKeyRingFile=PATH\\TO\\XXXX.gpg
    # Sonatype credentials
    # https://s01.oss.sonatype.org
    ossrhUsername=XXXX
    ossrhPassword=XXXX
    sonatypeStagingProfileId=XXXX
    
  • Update the version numbers in project root build.gradle
  • Select and run the Release new version run configuration in Android Studio or call it with .\gradlew release
    It will build and upload the release, update the README, make a git commit and tag the new version
  • Publish the release at https://s01.oss.sonatype.org/#stagingRepositories
  • Push the branch and create a release at https://github.com/eltos/SimpleDialogFragments/releases

Clone this wiki locally