Skip to content

Add minimumReleaseAge to hold back recent releases - #1484

Merged
slachiewicz merged 3 commits into
masterfrom
agent/minimum-release-age
Nov 8, 2026
Merged

slachiewicz merged 3 commits into
masterfrom
agent/minimum-release-age

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

Adds minimumReleaseAge (days, default 0 = off, -Dversions.minimumReleaseAge) so a release is offered as an update only once it has been published that long, and minimumReleaseAgeExcludes (groupId:artifactId patterns, * allowed) to exempt trusted artifacts. The date comes from the POM through Maven's own transport, so proxy, mirror and server credentials apply, and a version whose date cannot be read is offered with a warning. This supersedes #1403 and carries the commit of Master-Code-Programmer, so it must be merged with "Rebase and merge" to keep their authorship.

Closes #1362

Verified: mvn -pl versions-common test (319 tests), mvn -pl versions-maven-plugin verify -Prun-its -Dinvoker.test=it-minimum-release-age-001 (340 unit tests, IT passed) → green

Jan Diederich and others added 3 commits November 8, 2026 16:10
…ReleaseAge

The publication date is the modification time of the version's POM as the Resolver delivers it, so the session's proxy, mirror and server credentials apply. A date that cannot be read produces a warning. Only versions newer than the current one are looked up, the cache lives in the helper instead of a static ThreadLocal, and the exemption takes groupId:artifactId patterns.
@slachiewicz slachiewicz added the enhancement New feature or request label Nov 8, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 8, 2026 16:58
@slachiewicz
slachiewicz merged commit 354b1f1 into master Nov 8, 2026
16 checks passed
@slachiewicz
slachiewicz deleted the agent/minimum-release-age branch November 8, 2026 16:58
@github-actions github-actions Bot added this to the 2.24.1 milestone Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow to specify minimum release age

1 participant