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

conflicting advice

Open NikolayMetchev opened this issue 10 months ago • 1 comments

Plugin version 2.11.0

Gradle version 8.13

JDK version 21

(Optional) Kotlin and Kotlin Gradle Plugin (KGP) version 2.1.10

(Optional) Android Gradle Plugin (AGP) version N/A

(Optional) reason output for bugs relating to incorrect advice

e.core Configuration on demand is an incubating feature. Parallel Configuration Cache is an incubating feature. Calculating task graph as no cached configuration is available for tasks: :services:auth:avp-utils:reason --id libs.aws.smithy.kotlin.runtime.core Type-safe project accessors is an incubating feature.

Configure project :buildSrc WARNING: Unsupported Kotlin plugin version. The embedded-kotlin and kotlin-dsl plugins rely on features of Kotlin 2.0.21 that might work differently than in the requested version 2.1.10.

Task :services:auth:avp-utils:reason


You asked about the dependency 'aws.smithy.kotlin:runtime-core:1.4.9 (libs.aws.smithy.kotlin.runtime.core)'. You have been advised to add this dependency to 'testImplementation'. It matched a bundle rule: aws.smithy.kotlin:runtime-core:1.4.9 (libs.aws.smithy.kotlin.runtime.core) was substituted for aws.smithy.kotlin:runtime-core-jvm:1.4.9.LE You have been advised to remove this dependency from 'testImplementation'.

Shortest path from :services:auth:avp-utils to aws.smithy.kotlin:runtime-core:1.4.9 (libs.aws.smithy.kotlin.runtime.core) for compileClasspath: :services:auth:avp-utils --- aws.sdk.kotlin:verifiedpermissions:1.4.39 --- aws.sdk.kotlin:verifiedpermissions-jvm:1.4.39 --- aws.smithy.kotlin:runtime-core:1.4.9

Shortest path from :services:auth:avp-utils to aws.smithy.kotlin:runtime-core:1.4.9 (libs.aws.smithy.kotlin.runtime.core) for runtimeClasspath: :services:auth:avp-utils --- aws.sdk.kotlin:verifiedpermissions:1.4.39 --- aws.sdk.kotlin:verifiedpermissions-jvm:1.4.39 --- aws.smithy.kotlin:runtime-core:1.4.9

Shortest path from :services:auth:avp-utils to aws.smithy.kotlin:runtime-core:1.4.9 (libs.aws.smithy.kotlin.runtime.core) for testCompileClasspath: :services:auth:avp-utils --- aws.smithy.kotlin:runtime-core:1.4.10

Shortest path from :services:auth:avp-utils to aws.smithy.kotlin:runtime-core:1.4.9 (libs.aws.smithy.kotlin.runtime.core) for testRuntimeClasspath: :services:auth:avp-utils --- aws.smithy.kotlin:runtime-core:1.4.10

Source: main

(no usages)

Source: test

(no usages)

Describe the bug Advice is conflicting:

Advice for :services:auth:avp-utils Unused dependencies which should be removed: testImplementation(libs.aws.smithy.kotlin.runtime.core)

These transitive dependencies should be declared directly: testImplementation(libs.aws.smithy.kotlin.runtime.core)

To Reproduce Unfortunately I don't have a reproducer. Let me know if one is needed

Expected behavior no output

Additional context N/A

NikolayMetchev avatar Mar 13 '25 17:03 NikolayMetchev

Thanks for the issue. A reproducer would be very helpful.

autonomousapps avatar Mar 13 '25 18:03 autonomousapps