Skip to content

Backport unknown types, file name transformers and authentication to 1.x - #336

Merged
slachiewicz merged 1 commit into
mrm-1.xfrom
agent/mrm-1x-unknown-types
Nov 9, 2026
Merged

slachiewicz merged 1 commit into
mrm-1.xfrom
agent/mrm-1x-unknown-types

Conversation

@slachiewicz

@slachiewicz slachiewicz commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Brings to the Java 8 line the 2.x changes that do not depend on Java 17 or on the 2.0.0 module split, each as the original commit by @rfscholte followed by a separate Java 8 adaptation:

  • Support unknown types #299: an artifact whose type is not in the registry keeps the type as its extension instead of null. createArtifact(MavenSession, Artifact) keeps its signature.
  • Introduce support for FileNameTransformers #290: file name transformers, with the switch expression and Path.of rewritten.
  • Support authentication (#23) #300: authentication for the mock repository server (users), with the local record behind User.of replaced by an anonymous class. The JUnit Jupiter extension part stays in 2.x, since 1.x has no such module.

It also requires Maven 3.9.0 (#326), builds through the MojoHaus workflow with JDK 8 in the matrix, keeps the animal-sniffer Java 8 API check, and moves the line to 1.8.0-SNAPSHOT. Left out: #291 (it needs the JDK 22 class-file API), #287, #295, #296 and #301.

Verified: mvn clean install -Prun-its on JDK 17 targeting Java 8 → unit tests, animal-sniffer and all ITs, including security, pass.

If a type was not registered as artifactType, the file extension became null. It now keeps the type as the extension.

Backport to 1.7.x: createArtifact(MavenSession, Artifact) keeps its signature and delegates to the new createArtifact(ArtifactTypeRegistry, Artifact).

(cherry picked from commit 3d923e1)
@slachiewicz slachiewicz added the bug Something isn't working label Nov 9, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 9, 2026 20:59
@slachiewicz
slachiewicz merged commit e4f01b3 into mrm-1.x Nov 9, 2026
20 checks passed
@slachiewicz
slachiewicz deleted the agent/mrm-1x-unknown-types branch November 9, 2026 21:07
@slachiewicz slachiewicz changed the title Keep the type as extension for unknown types on 1.7.x Backport unknown types, file name transformers and authentication to 1.x Nov 9, 2026
@slachiewicz slachiewicz added the enhancement New feature or request label Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants