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

   The ITs depended on third-party artifacts from Maven Central only for one 
property each: a class with an inlined constant, a class in the unnamed 
package, static methods for method references, a test-scope library, a 
relocation, a transitive jar with a JDK class. A new setup project, 
`src/it/setup-fixture-libs`, builds small jars with exactly those properties 
and installs them into the IT repository before the other ITs run, as 
`setup-mock-plugin` already does.
   
   | Replaced | ITs | Fixture |
   |---|---|---|
   | `dom4j:dom4j:1.6.1` and its `xml-apis` | `excludeClassFromJar`, 
`inlinedStaticReference`, `jarWithXmlTransitiveDependency`, 
`usedUndeclaredReference` | `fixture-xml` → `xml-apis:xml-apis:1.0-fixture` |
   | `dnsjava:dnsjava:2.1.8` | `unnamedPackageClassReference` | 
`fixture-unnamed` |
   | `commons-io:commons-io:2.17.0`, `commons-lang:commons-lang:2.6` | 
`java8methodRefs` | `fixture-io`, `fixture-lang` |
   | `junit:junit:4.13.2` | `jarWithTestDependency`, 
`jarWithCompileScopedTestDependency`, `jarWithRuntimeScopedTestDependency`, 
`jarWithTransitivelyRequiredTestDependency` | `fixture-test` |
   | `axis:axis-ant:1.4` (relocation) | `jarWithRelocatedDependency` | 
`fixture-relocated` → `fixture-relocation-target` |
   
   The xml-apis stub keeps the `xml-apis:xml-apis` coordinates, because the 
analyzer recognizes that artifact as part of the JDK by its coordinates 
(MSHARED-47, `includedInJDK`); its version, `1.0-fixture`, does not exist on 
Central. On JDK 9 and later it is compiled with `--release 8`, since javac 
accepts a class in `org.xml.sax` only without modules.
   
   This clears the open Dependabot alerts, which all come from these fixture 
POMs, and drops JUnit 4 from the repository. The expected analysis of every IT 
keeps its shape; only the coordinates change. `kotlinInnerClassReference` still 
uses the Kotlin toolchain, since it tests Kotlin bytecode.
   
   Verified: `mvn -Prun-its verify` with an empty IT repository on JDK 17, 21 
and 25 (Maven 3.10.2) and on JDK 17 (Maven 4.0.0-rc-7) → 166 tests, 25/25 ITs; 
none of the replaced artifacts is downloaded. Not run locally on JDK 8.
   


-- 
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