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

   ## Summary
   - Replace `com.google.guava:guava` in `jarWithCompileDependency` with stable 
`javax.inject:javax.inject:1` to avoid frequent Dependabot-driven breakage and 
reduce test dependency weight.
   - Update `Project2` to use `javax.inject.Inject` so the compile dependency 
remains exercised as used/declared.
   - Remove the unused test source from the IT (incidental to the 
compile-dependency analysis being asserted).
   - Update `verify.groovy` expectations accordingly.
   
   This keeps the IT’s intent (a used declared compile dependency is reported 
under `UsedDeclaredArtifacts`) while making it resilient to external version 
bumps (see e.g. the failure in #312 where Guava was bumped to `33.7.1-android`).
   
   ## Testing
   - `JAVA_HOME=<jdk17> mvn -B -ntp -Prun-its verify 
-Dinvoker.test=setup-mock-plugin,jarWithCompileDependency`
   - Unit tests: 142 run, 0 failures/errors/skipped
   - Invoker ITs: `setup-mock-plugin`, `jarWithCompileDependency` passed


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