dependency-analysis-gradle-plugin
dependency-analysis-gradle-plugin copied to clipboard
Recommendation to use runtimeOnly 'androidx.compose.ui:ui-tooling:1.3.1' fails the build
Build scan link
What's this?
Dependencies which should be removed or changed to runtime-only:
runtimeOnly 'androidx.compose.ui:ui-tooling:1.3.1' (was implementation)
Plugin version
1.19.0
Gradle version
7.5
(Optional) Android Gradle Plugin (AGP) version
7.4.1
Describe the bug
./gradlew buildHealth produces a report that tells me to use runtimeOnly with androidx.compose.ui:ui-tooling:1.3.1 but using runtimeOnly fails my build, meaning it's a false report.
To Reproduce I guess have a project with implementation androidx.compose.ui:ui-tooling:1.3.1 and use @Preview somewhere with a composable function.
Expected behavior
A recommendation given by buildHealth should not be false and cause a failing build.
Thanks for the issue. Could you provide a minimal reproducer?
Also, I can confirm that this is still happening in version 1.20.0.