autonomousapps / autonomousapps/dependency-analysis-gradle-plugin

conflicting advice

Open
#1,397 1 comment 0 reactions 0 assignees View on GitHub
bug more information needed toolchain:kotlin
Dominant language
Kotlin
Stars
2.2k
Forks
158
Avg merge
16h 25m
Merged PRs (30d)
46

Description

**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

Contributor guide

Open the contributing guide

Research direction

Start with the :services:auth:avp-utils:reason task and the reported advice for aws.smithy.kotlin:runtime-core. Reproduce the conflicting testImplementation recommendations, then trace why the dependency is both considered unused and advised as a direct declaration; done means the advice no longer contradicts itself.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.