dependency-analysis-gradle-plugin icon indicating copy to clipboard operation
dependency-analysis-gradle-plugin copied to clipboard

Recommendation to use runtimeOnly 'androidx.compose.ui:ui-tooling:1.3.1' fails the build

Open trevorhackman opened this issue 2 years ago • 3 comments

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.

trevorhackman avatar Apr 12 '23 22:04 trevorhackman

Thanks for the issue. Could you provide a minimal reproducer?

autonomousapps avatar Apr 21 '23 15:04 autonomousapps

MyApplication.zip

Minimal reproducer attached. Set it up and then run ./gradlew buildHealth in it.

trevorhackman avatar Apr 27 '23 01:04 trevorhackman

Also, I can confirm that this is still happening in version 1.20.0.

trevorhackman avatar Apr 27 '23 01:04 trevorhackman