Repository navigation
Publish SNAPSHOTs to maven.descoped.io, as the Descoped SNAPSHOT standard - #10
Conversation
…dard SNAPSHOTs go only to Descoped's AWS CodeArtifact repository, read publicly at https://maven.descoped.io/; releases go only to Maven Central. - pom.xml: read SNAPSHOTs from descoped-snapshots-public; a descoped-snapshots profile (snapshot repository from descoped.snapshots.url, enforcer requireSnapshotVersion and requireProperty, sources, deployAtEnd); the central profile gets requireReleaseVersion and requireReleaseDeps; the Central Portal snapshot repository is removed; maven-help-plugin and versions-maven-plugin pinned for CI. - ci.yml: the snapshot job from rawdata-client-project, after the build, on a push to master or a workflow_dispatch on a branch. Only pull requests cancel an earlier run, so an upload never stops halfway. - .claude/CLAUDE.md: the Publishing rule says where SNAPSHOTs and releases go.
|
Claude finished @oranheim's task in 1m 3s —— View job PR review: Publish SNAPSHOTs to maven.descoped.io
I found nothing that blocks the merge. No Java code changed, so the Java 17, JPMS, wire-compatibility, immutability, malformed-input and Javadoc rules are not affected. Invariant: PublishingThis PR changes the rule "CI publishes nothing: no SNAPSHOTs and never a release." It does not break it by accident: the rule is rewritten in the same PR (
Approving this PR also approves the new rule. Security and secretsI found no leaked secrets or hardcoded endpoints:
SUGGESTIONS (non-blocking)
Checked and fine
I couldn't check from here that |
- maven-source-plugin's version moves to pluginManagement, so the central and descoped-snapshots profiles share one version. - README: the Install section says where SNAPSHOTs are and how they are named.
Review findings addressedNo blocking findings. The suggestions, each triaged:
The pinned |
|
Follow-up on suggestion 2 (OIDC trust): the aws-platform side has confirmed it from live AWS.
A dispatched branch can therefore do no more than a push by someone with write access already can. Write access is the trust boundary, as intended. |
Applies the Descoped Maven SNAPSHOT standard (reference: rawdata-client-project). SNAPSHOTs go only to Descoped's AWS CodeArtifact repository, read publicly at https://maven.descoped.io/; releases go only to Maven Central.
pom.xml
descoped-snapshots-public(https://maven.descoped.io/, snapshots only). Maven Central stays the implicit default.descoped-snapshots: snapshot repositorydescoped-snapshotsat${descoped.snapshots.url}; enforcerrequireSnapshotVersionandrequireProperty(https://\S+/); sources (jar-no-fork);deployAtEnd.central: enforcerrequireReleaseVersionandrequireReleaseDeps.maven-help-plugin3.6.0 andversions-maven-plugin2.25.3 pinned inpluginManagement(CI uses them).ci.yml
snapshotjob from rawdata-client-project, unchanged. It runs after the build, on a push to master (X.Y.Z-SNAPSHOT) or aworkflow_dispatchon a branch (X.Y.Z-<branch>-SNAPSHOT), never on pull requests or tags. Only this job hasid-token: write..claude/CLAUDE.md: the Publishing rule says where SNAPSHOTs and releases go, and that no account ID or endpoint goes into a public file.
Checked
verify javadoc:javadocpasses.-P centralon a SNAPSHOT fails with "Only releases go to Maven Central".-P descoped-snapshotswithout the URL fails with "descoped.snapshots.url is not set", and passes with one.workflow_dispatchon this branch (run 45187573864): build and "Publish SNAPSHOTs" succeeded.0.1.1-ci-descoped-snapshots-SNAPSHOT:maven-metadata.xml, the pom, the jar and the sources jar all read back with 200 from maven.descoped.io.${descoped.snapshots.url}stays unexpanded.