Releasing

Nothing has been published yet. This page lists what the build does, what the owner must still do, and the steps for each release. Artifacts are published under the group com.jsgalactic.axiom (for example com.jsgalactic.axiom:axiom), which is also the Java package root. It is the reverse of the project domain axiom.jsgalactic.com, so the namespace can be verified through DNS. The group and packages were io.axiom before the first release; nothing was ever published under that name, so no relocation is needed.

Published modules

axiom (the starter, project axiom-starter) and 19 further axiom.java-library modules, plus axiom-bom. The exact list is the set of projects applying axiom.java-library in settings.gradle.kts; the BOM currently constrains 20 published library modules. Examples, benchmarks and integration-tests are not published. A new library module that applies axiom.java-library is published automatically; add it to axiom-bom as well.

Owner actions before the first release

  1. Confirm the POM developer metadata in gradle.properties: axiom.pom.developerId (matrixjnr), axiom.pom.developerName (John Simiyu), axiom.pom.developerUrl (axiom.jsgalactic.com) and axiom.pom.developerEmail are already real values. The repository URL (https://github.com/matrixjnr/axiom) and the Apache-2.0 license come from the repository. Publishing fails while placeholders remain.
  2. Verify the namespace com.jsgalactic in the Central Portal (central.sonatype.com): add the namespace to the publishing account, then publish the verification key the portal shows as a DNS TXT record on jsgalactic.com and ask the portal to verify it. Only the owner of the domain can do this. A verified com.jsgalactic covers the com.jsgalactic.axiom group. Then create a user token for publishing.
  3. Create a signing key pair, publish the full public key including signing subkeys to a key server, and keep the private key out of the repository. Sonatype lists keyserver.ubuntu.com, keys.openpgp.org and pgp.mit.edu; confirm the UID where required and allow time for propagation. Record the fingerprint in the release checklist so validation failures can be traced. Provide the private key to CI as secrets: ORG_GRADLE_PROJECT_signingInMemoryKey (armored private key), ORG_GRADLE_PROJECT_signingInMemoryKeyId (optional) and ORG_GRADLE_PROJECT_signingInMemoryKeyPassword. Generating the key and storing the secrets is not the same as distributing the public key: no key was published by the build itself.
  4. Add the Sonatype Portal credentials to the protected release environment as CENTRAL_USERNAME and CENTRAL_PASSWORD. A generated user token is simply a username/password pair; account credentials use the same mechanism. The workflow base64-encodes username:password into the Portal API Bearer header, so no settings.xml is needed: publishing is done by Gradle and curl. If the Portal rejects account credentials, generate a user token from the Account page and use that pair instead.
  5. The release workflow uses the Central Publisher Portal bundle API. ./gradlew publishReleaseRepository writes a signed Maven layout to build/release-repository; the workflow adds .md5 and .sha1 files for every artifact, zips the layout with its com/ root intact and POSTs the bundle with publishingType=USER_MANAGED. Validation runs in the Portal, and the owner must then press Publish there: pushing a tag never publishes to Central by itself. A manual push to a Maven-style URL is still possible with -Paxiom.publish.url=... -Paxiom.publish.username=... -Paxiom.publish.password=... (property names with dots cannot be set through ORG_GRADLE_PROJECT_ variables).
  6. GitHub Actions are pinned to full commit SHAs with the version as a trailing comment. To add or update one by hand, resolve the tag with git ls-remote --tags https://github.com/<owner>/<repo> 'refs/tags/<tag>*' (for an annotated tag use the ^{} line, which is the commit), write @<sha> # <tag>, and check the SHA against the upstream release page. .github/dependabot.yml proposes weekly action updates and preserves the comment style.
  7. Protect tags (v*) and limit who can push them. The release environment already guards release.yml; configure the owner as its required reviewer and verify the five secrets are on that same environment. A reviewer gate does not create secrets, verify the namespace or press Publish.
  8. The starter’s sources and Javadoc jars contain only META-INF/. Central explicitly permits placeholder jars and does not evaluate their contents, so this is not a validation blocker. If nicer IDE documentation is wanted, add a README resource to those two jars; a placeholder class is unnecessary.

Manual release trigger

Publishing never runs on a merge to main. The Release workflow starts only when a v* tag is pushed, or when it is run manually from the Actions tab with a ref input that names a tag (v0.1.0) or a release branch (release/0.1.0). Both paths run the same verification, build the signed bundle, upload it with USER_MANAGED publishing and wait for the owner to press Publish in the Central Portal. The publish job uses the release environment; keep required reviewers configured on that environment so an upload needs an explicit approval.

Release checklist

  1. Make sure main is green: ./gradlew clean check --rerun-tasks --no-build-cache.
  2. Update CHANGELOG.md: move the Unreleased entries under the new version and date.
  3. Set version= in gradle.properties to the release version (no -SNAPSHOT) and update the install snippets in README.md (remove the “not yet published” note only after the artifacts are visible on Central).
  4. Run ./gradlew compatibilityTest locally, or let the workflow do it.
  5. Open a PR with these changes and merge it after review.
  6. Tag the merge commit v<version> (for example v0.1.0) and push the tag. The Release workflow checks that the tag equals the project version and is not a SNAPSHOT, runs check and compatibilityTest, and uploads the unsigned Maven repository as a workflow artifact.
  7. The protected release environment must contain the signing key secrets from step 3, the Central credential secrets from step 4, and required reviewers. Pushing the tag runs the publish job: it builds the signed repository, adds checksums, zips the bundle, uploads it with USER_MANAGED and records the deployment ID and bundle as workflow artifacts. No POM placeholder or missing key can pass the Gradle guard.
  8. In the Central Portal, wait for validation and press Publish for that deployment. Verify that all published modules, their .module files, signatures, sources and Javadoc jars are present, then run the Maven and Gradle snippets from the README against the released version.
  9. Bump version= to the next -SNAPSHOT and add an empty Unreleased section.

Snapshot policy

main carries a -SNAPSHOT version. Snapshots are not published by default; no snapshot repository is configured. If one is added, publish only from main after check, never from pull requests or forks. A release is never published from a -SNAPSHOT version.

SBOM plan

No SBOM is produced yet. Adding a CycloneDX Gradle plugin changes the trusted build dependencies; it should be added deliberately, with its checksums recorded in gradle/verification-metadata.xml. Plan: apply the plugin to the starter (which has the full runtime classpath), emit a JSON SBOM for the runtimeClasspath, attach it to the workflow artifacts and the release. Until then the dependency list in docs/build.md and the verification metadata are the record of third-party content.

Dependency verification

gradle/verification-metadata.xml is committed and enforced. After a dependency or plugin version change, regenerate it with the command in docs/build.md, review the diff, and commit it together with the version change. Checksums are trust-on-first-use.

Trust model and review. Gradle signature verification (verify-signatures) was evaluated and is not enabled. Of the 263 jar and POM files then in the root metadata, 259 have a detached .asc on Maven Central (the others are plugin portal artifacts and one old parent POM), but verification would need a keyring entry for every signing key of 151 components, including Gradle plugin portal artifacts that are not signed, and every update would add or change keys to review. The checksums therefore trust Maven Central and the plugin portal as served when the entry was first recorded; a later change of content under the same version fails the build. A reviewer of a metadata change checks that: only components of the changed dependency appear in the diff; versions match the catalog; no existing checksum changed (a changed checksum for an unchanged version is a red flag and blocks the change); every .module has its .pom (python3 .github/scripts/verify-pom-checksums.py, run by the build job); and, for new components, that the group and name are the expected ones. Revisit signatures if the dependency set shrinks or a project publishes its keys in a verifiable way.

To regenerate on a dependency update pull request, check out its branch, run the commands in docs/build.md (root build, then the consumers), run verify-pom-checksums.py --fix, and push the result on top of the bot’s commit. Dependabot also covers build-logic and the compatibility/ consumers; their metadata is regenerated the same way.

Netty and Jackson update policy

Netty (transport) and Jackson (codec) updates change runtime behavior, so they are reviewed more closely than other dependency updates.

  • Cadence: Dependabot proposes one grouped PR per family each week (.github/dependabot.yml). Take patch releases of the current minor line at least monthly and before every release; take a new minor line deliberately, in its own PR. A major version (for example Jackson 3) is a design decision, not a routine update.
  • Security fixes: watch the GitHub security advisories of both projects. A fix for a vulnerability that is reachable through Axiom (HTTP parsing, compression, TLS, JSON parsing) is taken as soon as possible, outside the cadence, with a note in CHANGELOG.md. Record the triage result (affected, not affected, why) in the PR.
  • Changelog review: read the release notes between the old and new version for changed defaults, deprecations, security fixes and behavior changes in the parts Axiom uses (HTTP/1.1 codec, buffer handling and leak detection; databind, streaming and java.time/Optional modules). Summarize anything relevant in the PR.
  • Verification: run ./gradlew clean check --rerun-tasks --no-build-cache (this includes the integration-tests module that runs the JSON contract against the real codec and listener), then ./gradlew compatibilityTest, and rerun the JMH benchmarks in benchmarks/ as described in docs/benchmarks.md. Compare against the previous version and state the result in the PR; a regression is a reason to hold the update.
  • Metadata: the version change and the regenerated gradle/verification-metadata.xml land in the same commit (see Dependency verification). Dependabot cannot regenerate the file, so push the regeneration to the update PR’s branch before merging.
  • Keep the Netty family on one BOM version and the Jackson family on one BOM version; never bump a single artifact.

Workflows

  • build.yml: ./gradlew clean check and the hello smoke run on JDK 21, Linux, for pushes to main and pull requests. Pull requests also run the commits job, which builds each commit of the PR (up to 20, tip only for dependabot/ branches, see docs/build.md).
  • compatibility.yml: weekly and on demand; runs ./gradlew compatibilityTest (Gradle Kotlin, Gradle Groovy and Maven consumers).
  • release.yml: on v* tags or manual dispatch with a ref, builds the signed Maven layout and uploads a USER_MANAGED bundle to the Central Portal; the owner presses Publish there. The publish job uses the protected release environment.

build.yml and compatibility.yml request contents: read only and use no secrets. release.yml uses the release environment and its five secrets.