Repository navigation
Add release -SNAPSHOT dependency guard and make mavenLocal() opt-in - #123
Conversation
|
[reviewer1] Changes requested on
|
|
[reviewer3] Review of head Scope: build and CI wiring, release hygiene, docs. What I verified (clean worktree at
Non-blocking (P3)
|
|
Initial automated review · Aster Hi @satran004, thanks for the PR! 🙏 This is an automatic first check by an AI reviewer. It does not replace maintainer review and may be wrong. Reviewed commit: Issues found:
Not tested: Build scripts and tests were read only; I did not run Gradle or publish any artifacts. |
… snapshot/property checks
|
Addressed all review items in commit
Verification (
|
|
[reviewer1] Changes requested on Maven 3.9.9 checks the last eight characters case-insensitively for |
|
[reviewer3] Re-review of head What I verified
Blocking: The new comment says the predicate "Matches
Round 1 ( Suggested fix: make the suffix check exactly Maven's: def SNAP = 'SNAPSHOT'
def isMavenSnapshot = { String ver ->
ver != null && !ver.isEmpty() && (
(ver.length() >= SNAP.length()
&& ver.regionMatches(true, ver.length() - SNAP.length(), SNAP, 0, SNAP.length()))
|| timestampedSnapshotPattern.matcher(ver).matches())
}Then add No other findings. |
|
Addressed Round 2 review items in commit
Verification (
|
|
[reviewer1] Approved on |
|
[reviewer3] Re-review of head The round-2 item is resolved. Verified at
The staging-task gating and the real Julc-snapshot negative were verified in the previous round, and this diff does not touch them. No further findings. |
Summary
-SNAPSHOTdependency guard (verifyNoSnapshotDependenciesInReleasePomsinbuild.gradle):.github/workflows/release.ymlonly checked that the project's ownversiondid not containSNAPSHOT, leaving published POMs, BOM constraints, transitive classpaths, annotation processors, and buildscript plugin dependencies (such asjulcVersionorcclVersion) unchecked.verifyNoSnapshotDependenciesInReleasePomscovering all 19 published modules (includingzeroj-bom-core):dependencyManagement, parent POM, and clean release POM) so a parser bug cannot turn the check into a silent no-op..pom(<version>,<parent>,<dependencies>,<dependencyManagement>) as well as resolvedcompileClasspath,runtimeClasspath,annotationProcessor, andbuildscript:classpathcomponents (failing closed on unresolved dependencies too).-PrequireNoSnapshotDependencies=trueis passed) while cleanly skipping on-SNAPSHOTproject versions so snapshot publishing workflows continue uninterrupted.check,nmcpZipAggregation,nmcpPublishAggregationToCentralPortal, andpublishAllPublicationsToStagingRepository..github/workflows/release.yml: runsverifyNoSnapshotDependenciesInReleasePoms -PrequireNoSnapshotDependencies=truein Stage 0 (validate, on tag builds — fails fast in <1 s before multi-platformlibblstbuilds) and again in Stage 2 (publish)..github/workflows/ci.yml: runsverifyNoSnapshotDependenciesInReleasePomsalongsideverifyDefaultModuleSurfaceandverifyNoBuiltinProfileDefine.mavenLocal()hygiene:mavenLocal()in rootbuild.gradlewith opt-in-PuseMavenLocal=true, keeping default builds and releases isolated from locally installed~/.m2artifacts.verifyNoSnapshotDependenciesInReleasePomsand-PuseMavenLocal=trueinwww/src/content/docs/reference/configuration.md.Verification
./gradlew verifyMavenReleasePublicationScope verifyDefaultModuleSurface verifyNoSnapshotDependenciesInReleasePoms -PrequireNoSnapshotDependencies=true -PskipSigning=true --stacktrace— PASSED (19 published POMs and 74 resolved classpaths clean,672 ms)../gradlew verifyNoSnapshotDependenciesInReleasePoms -Pversion=0.1.0-SNAPSHOT -PskipSigning=true --stacktrace— PASSED (cleanly skipped on SNAPSHOT version)../gradlew verifyNoSnapshotDependenciesInReleasePoms -Pversion=0.1.0-SNAPSHOT -PrequireNoSnapshotDependencies=true -PskipSigning=true --stacktrace— FAILED as expected with full POM & classpath violation list../gradlew :zeroj-onchain-julc:compileJava :zeroj-api:check verifyDefaultModuleSurface verifyNoBuiltinProfileDefine verifyNoSnapshotDependenciesInReleasePoms -PskipSigning=true --stacktrace— PASSED withoutmavenLocal().