Repository navigation
Name the SNAPSHOT target in CI, not in the POM - #11
Merged
Merged
Conversation
The descoped-snapshots profile is removed. CI's deploy step names the target on its command line (-DaltSnapshotDeploymentRepository), adds the sources (source:jar-no-fork) and -DdeployAtEnd=true, and its settings.xml keeps only the server with the token and repositoryOrigins. The alternative repository applies to SNAPSHOTs only and the POM has no other deployment target, so a release version fails to deploy rather than reaching CodeArtifact. The job's "Only a SNAPSHOT" step still checks first. The central profile keeps requireReleaseVersion and requireReleaseDeps.
|
Claude finished @oranheim's task in 42s —— View job Review of PR #11: Name the SNAPSHOT target in CI, not in the POM
Verdict: clean. No CRITICAL issues. The change removes POM configuration and does what the description says. No Java, README or test changes are involved, so the Java 17, JPMS, wire-compatibility, immutability, malformed-input and Javadoc invariants don't apply here. What I checked
SUGGESTION (non-blocking)
I didn't run the build or tests here. CI runs them on JDK 17. The PR description reports local |
- .claude/CLAUDE.md: the POM has no distributionManagement at all, and that is what stops a release version from deploying to maven.descoped.io; never add one. - claude.yml: the review prompt's publishing rule now matches CLAUDE.md, in place of the old "CI publishes nothing".
Member
Author
Review findings addressedThe review was clean (no CRITICAL findings). Both suggestions are fixed in c737770:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
descoped-snapshotsprofile leaves the POM. A settings.xml profile can't replace it: settings profiles hold only properties, repositories and activation, not a deployment target or plugins. CI's deploy step names everything on its command line instead.ci.yml (Deploy step only)
settings.xmlkeeps only thedescoped-snapshotsserver: the token andrepositoryOrigins. The profile that setdescoped.snapshots.urlis gone.-DaltSnapshotDeploymentRepository="descoped-snapshots::$url" -DdeployAtEnd=true -DskipTests -DskipITs source:jar-no-fork deploy.$urlcomes from the endpoint lookup and stays masked.pom.xml: the profile is removed. The
centralprofile keepsrequireReleaseVersionandrequireReleaseDeps, and its comments now say CI publishes SNAPSHOTs..claude/CLAUDE.md: the Publishing rule says the job names the target on its command line.
Why the profile's guards are not needed
requirePropertyto check. If the endpoint lookup fails, the step stops (bash -e).Checked
verify javadoc:javadocpasses, and-P centralstill refuses a SNAPSHOT.workflow_dispatch(run 45201739023): build and "Publish SNAPSHOTs" succeeded.0.1.1-ci-snapshot-target-in-ci-SNAPSHOT: metadata, pom, jar and sources jar read back with 200 from maven.descoped.io.snapshotRepository.This is the CI-only variant of the Descoped SNAPSHOT standard (dossier
d216929, reverted in377b94c). java-tuple now differs from the standard and from rawdata-client-project until those follow.