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
- Confirm the POM developer metadata in
gradle.properties:axiom.pom.developerId(matrixjnr),axiom.pom.developerName(John Simiyu),axiom.pom.developerUrl(axiom.jsgalactic.com) andaxiom.pom.developerEmailare 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. - Verify the namespace
com.jsgalacticin 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 onjsgalactic.comand ask the portal to verify it. Only the owner of the domain can do this. A verifiedcom.jsgalacticcovers thecom.jsgalactic.axiomgroup. Then create a user token for publishing. - 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.organdpgp.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) andORG_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. - Add the Sonatype Portal credentials to the protected
releaseenvironment asCENTRAL_USERNAMEandCENTRAL_PASSWORD. A generated user token is simply a username/password pair; account credentials use the same mechanism. The workflow base64-encodesusername:passwordinto the Portal APIBearerheader, so nosettings.xmlis 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. - The release workflow uses the Central Publisher Portal bundle API.
./gradlew publishReleaseRepositorywrites a signed Maven layout tobuild/release-repository; the workflow adds.md5and.sha1files for every artifact, zips the layout with itscom/root intact and POSTs the bundle withpublishingType=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 throughORG_GRADLE_PROJECT_variables). - 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.ymlproposes weekly action updates and preserves the comment style. - Protect tags (
v*) and limit who can push them. Thereleaseenvironment already guardsrelease.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. - 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
- Make sure
mainis green:./gradlew clean check --rerun-tasks --no-build-cache. - Update
CHANGELOG.md: move theUnreleasedentries under the new version and date. - Set
version=ingradle.propertiesto the release version (no-SNAPSHOT) and update the install snippets inREADME.md(remove the “not yet published” note only after the artifacts are visible on Central). - Run
./gradlew compatibilityTestlocally, or let the workflow do it. - Open a PR with these changes and merge it after review.
- Tag the merge commit
v<version>(for examplev0.1.0) and push the tag. The Release workflow checks that the tag equals the project version and is not a SNAPSHOT, runscheckandcompatibilityTest, and uploads the unsigned Maven repository as a workflow artifact. - The protected
releaseenvironment must contain the signing key secrets from step 3, the Central credential secrets from step 4, and required reviewers. Pushing the tag runs thepublishjob: it builds the signed repository, adds checksums, zips the bundle, uploads it withUSER_MANAGEDand records the deployment ID and bundle as workflow artifacts. No POM placeholder or missing key can pass the Gradle guard. - In the Central Portal, wait for validation and press Publish for that
deployment. Verify that all published modules, their
.modulefiles, signatures, sources and Javadoc jars are present, then run the Maven and Gradle snippets from the README against the released version. - Bump
version=to the next-SNAPSHOTand add an emptyUnreleasedsection.
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/Optionalmodules). Summarize anything relevant in the PR. - Verification: run
./gradlew clean check --rerun-tasks --no-build-cache(this includes theintegration-testsmodule that runs the JSON contract against the real codec and listener), then./gradlew compatibilityTest, and rerun the JMH benchmarks inbenchmarks/as described indocs/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.xmlland 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 checkand the hello smoke run on JDK 21, Linux, for pushes tomainand pull requests. Pull requests also run thecommitsjob, which builds each commit of the PR (up to 20, tip only fordependabot/branches, seedocs/build.md).compatibility.yml: weekly and on demand; runs./gradlew compatibilityTest(Gradle Kotlin, Gradle Groovy and Maven consumers).release.yml: onv*tags or manual dispatch with aref, builds the signed Maven layout and uploads aUSER_MANAGEDbundle to the Central Portal; the owner presses Publish there. Thepublishjob uses the protectedreleaseenvironment.
build.yml and compatibility.yml request contents: read only and use no secrets.
release.yml uses the release environment and its five secrets.