Skip to content

Notes for Developers and Maintainers

Philipp Niedermayer edited this page Feb 9, 2024 · 4 revisions

Build

  • The project uses JAVA with JDK version 17 (see .github/workflows/build.yml and .jitpack.yml)

Publish a new release

The publishing process is largely automated via the publish.gradle and simpledialogfragments/publish.gradle files, thanks to the excellent tutorial Publishing Android libraries to MavenCentral in 2021.

  • Create or update the project root local.properties file 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
  • Increment the version in project root build.gradle file
    // Version number used for simpledialogfragments library, testApp and maven repository
    ext {
      VERSION = '0.0'
      VERSION_NR = 000
    }
  • 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
    run
  • Publish the release at https://s01.oss.sonatype.org/#stagingRepositories
  • Push to GitHub and create release notes at https://github.com/eltos/SimpleDialogFragments/releases