Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 1.1 KB

PUBLISHING.md

File metadata and controls

18 lines (16 loc) · 1.1 KB

Publishing

This file is a guide to publishing new versions of the library. Semantic versioning is used: in this document the version name 1.2.3 is used as a placeholder for the Maven artifact version.

  1. Run ./gradlew clean check jar to ensure the code compiles and passes linting
  2. Update the library version in build.gradle.kts
  3. Update the README.md with the new version number
  4. Commit the changes with commit message Release v1.2.3 and push
  5. Build the JAR again with ./gradlew clean jar to update its version
  6. Create a new release on GitHub with tag name v1.2.3, release title v1.2.3 and a bullet-pointed changelog. Attach the built JAR from builds/libs and update its name to gson-bijectivereflection-1.2.3.jar
  7. Ensure secrets.properties exists locally and has all the fields requested in the build.gradle.kts for signing and uploading
  8. Run ./gradlew publishMavenPublicationToMavenCentralStagingRepository
  9. Open https://oss.sonatype.org/#stagingRepositories, close the repository, and release it