You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see the same thing with Kotlin-reflect, although the advice here is to make it runtime only. The problem is that if I do that, I get compiler warnings.
Advice for root project
Unused dependencies which should be removed:
testImplementation("org.jetbrains.kotlin:kotlin-test:2.0.21")
testImplementation("org.jetbrains.kotlin:kotlin-test:2.0.21") { capabilities {
requireCapability("org.jetbrains.kotlin:kotlin-test-framework-junit5")
}}
These transitive dependencies should be declared directly:
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
("These transitive dependencies [...]" can be ignored as I just did not want to deal with it for the reproduction.)
If I change HelloWorldTest to
importkotlin.test.Testimportkotlin.test.failclassHelloWorldTest {
@Test
fun`runs without throwing`() {
fail()
}
}
it results in:
Advice for root project
These transitive dependencies should be declared directly:
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
Build scan link
https://gradle.com/s/532wov7wlgtsg
Plugin version
2.1.1
Gradle version
Describe the bug
That library has usages, it's used on
package
and inmodule-info
(yes, I know on the latter not supported)To Reproduce
Steps to reproduce the behavior:
speculatively, a library is used only with annotations that are annotating a
package-info
classExpected behavior
no error. implementation is the correct scope.
Additional context
wasn't reported in 1.x
The text was updated successfully, but these errors were encountered: