Skip to content

Enable storage retention for maven - #444

Merged
andrew merged 1 commit into
git-pkgs:mainfrom
pinguinfuss:issue-306-retention-maven
Oct 12, 2026
Merged

andrew merged 1 commit into
git-pkgs:mainfrom
pinguinfuss:issue-306-retention-maven

Conversation

@pinguinfuss

Copy link
Copy Markdown
Contributor

Refs #306, builds on #428.

Registers maven for storage.retention.

Package rules use pkg:maven/{group}/{artifact} with the case as published. Keys without a group, or with the group written as a path (org/apache/...), could never match and are refused at startup. Files from the Gradle Plugin Portal fallback fall under the maven rule. The Gradle build cache isn't affected and keeps its own max_age.

The mirror can't fetch Maven packages today: it passes group/artifact where the resolver wants group:artifact. So there's no mirror test.

Package rules use pkg:maven/{group}/{artifact} with the case as published. Keys without a group or with the group written as a path can never match and are refused. Files from the Gradle Plugin Portal fallback fall under the maven rule; the Gradle build cache isn't affected.

The mirror can't fetch Maven packages today (it passes group/artifact where the resolver wants group:artifact), so there's no mirror test.

Refs git-pkgs#306

@andrew andrew left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maven package rules match the stored PURLs, and the handler tests cover eviction, refetching, package exemptions, and Plugin Portal fallback.

@andrew
andrew merged commit 90989eb into git-pkgs:main Oct 12, 2026
6 checks passed
@pinguinfuss
pinguinfuss deleted the issue-306-retention-maven branch October 12, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants