Closed baron1405 closed 4 weeks ago
Thanks for the issue. When you say
The library is used in the package-info.java files.
Could you please elaborate?
I'll have a fix in the next release, sometime today 👍
Thanks @autonomousapps for looking into this. It appears you have reproduced the problem and have a fix. In any case, to answer your question, the library in question provides annotations and the only place in my code where I use those annotations is in the package-info.java
file. For example, think of using the jsr305 ParametersAreNonnullByDefault
annotation in the package-info.java
file so that it effects all code within that package.
Plugin version 2.2.0
Gradle version 8.10.2
JDK version 17
(Optional)
reason
output for bugs relating to incorrect advice Report says, incorrectly:The
libs.cthingAnnots
is an alias for org.cthing:cthing-annotations:1.0.0.The reason output says, correctly:
Describe the bug The library is used in the package-info.java files.
To Reproduce Steps to reproduce the behavior:
./gradlew clean build
com.autonomousapps.dependency-analysis
from 1.32.0 to 2.2.0./gradlew clean build
org.cthing:cthing-annotations:1.0.0
Expected behavior The build should succeed because the dependency is used. Note that the build succeeds using plugin version 1.32.0, but fails using plugin version 2.2.0.