Skip to content

Resolve the enforcer rule's signature through Maven Resolver - #367

Merged
slachiewicz merged 1 commit into
masterfrom
agent/maven-compat
Oct 12, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/maven-compat

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

The enforcer rule now resolves its signature with RepositorySystem and the project's remote repositories, as check-signature already does, and the module no longer depends on maven-compat. Signature.createArtifact() now returns a Resolver artifact and takes no argument.

Verified: mvn -Prun-its verify -pl animal-sniffer-enforcer-rule -am β†’ 3/3 ITs pass on Maven 3.9.16 and 4.0.0-rc-7; smoke-test resolves both signatures.

Drops the maven-compat ArtifactResolver and ArtifactFactory, matching how check-signature resolves its signature.
@slachiewicz slachiewicz added the maintenance Cleanup, refactoring or other internal change label Oct 12, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review October 12, 2026 10:57
@slachiewicz slachiewicz added enhancement New feature or request and removed maintenance Cleanup, refactoring or other internal change labels Oct 12, 2026
@slachiewicz
slachiewicz merged commit 3e54f17 into master Oct 12, 2026
15 checks passed
@slachiewicz
slachiewicz deleted the agent/maven-compat branch October 12, 2026 11:33
@github-actions github-actions Bot added this to the 1.29 milestone Oct 12, 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.

1 participant