slachiewicz opened a new pull request, #333:
URL: https://github.com/apache/maven-dependency-analyzer/pull/333

   Two small, additive utilities for the duplication found across analyzer 
consumers, plus their use inside the library.
   
   Tracking: apache/maven-dependency-analyzer#329
   
   - `ClassNames.normalizeInternalName(String)` converts `org/apache/Foo$Bar` 
to `org.apache.maven.Foo`. Qulice, KriKroff maven-project-graph, and 
tha2015/free-plugins each implement this normalization locally.
   - `ArtifactKeys.groupArtifactId(Artifact)` returns `groupId:artifactId`. The 
analyzer's `forceDeclaredDependenciesUsage` and maven-dependency-plugin's 
`ForcedUsage`/`AnalyzeDepMgt` each build this key independently.
   - Use `ArtifactKeys` in 
`ProjectDependencyAnalysis.forceDeclaredDependenciesUsage` so the library stops 
duplicating its own key format.
   
   Both helpers are new public classes with `@since 1.18.0`; nothing existing 
changes behavior.
   
   Verified: `JAVA_HOME=zulu-21 mvn -B -o -Prun-its verify` → BUILD SUCCESS, 
unit tests 146 → 150 (four new tests, none dropped), invoker ITs 23 passed / 0 
failed.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to