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.
- Run
./gradlew clean check jar
to ensure the code compiles and passes linting - Update the library version in
build.gradle.kts
- Update the
README.md
with the new version number - Commit the changes with commit message
Release v1.2.3
and push - Build the JAR again with
./gradlew clean jar
to update its version - Create a new release
on GitHub with tag name
v1.2.3
, release titlev1.2.3
and a bullet-pointed changelog. Attach the built JAR frombuilds/libs
and update its name togson-bijectivereflection-1.2.3.jar
- Ensure
secrets.properties
exists locally and has all the fields requested in thebuild.gradle.kts
for signing and uploading - Run
./gradlew publishMavenPublicationToMavenCentralStagingRepository
- Open https://oss.sonatype.org/#stagingRepositories, close the repository, and release it