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
> Advice for :B
Existing dependencies which should be modified to be as indicated:
implementation(projects.A) (was api)
Advice for :C
Unused dependencies which should be removed:
implementation(projects.A)
Running :B:reason --id :A:
------------------------------------------------------------
You asked about the dependency ':A'.
You have been advised to change this dependency to 'implementation' from 'api'.
------------------------------------------------------------
Source: devDebug, main
----------------------
* Imports 1 class: MyResult (implies implementation).
Running :B:reason --id :A:
------------------------------------------------------------
You asked about the dependency ':A'.
You have been advised to remove this dependency from 'implementation'.
------------------------------------------------------------
Source: devDebug, main
----------------------
(no usages)
If I follow the advice then compiling C fails:
e: Baz.kt:20:52 Cannot access class 'MyResult'. Check your module classpath for missing or conflicting dependencies.
The text was updated successfully, but these errors were encountered:
eygraber
changed the title
Return type not considered for public API
Return type of suspend function not considered for public API
Nov 27, 2024
Running ./gradlew buildHealth on the repro above fails only when foo is a suspending function in services/foo/public/src/main/kotlin/template/services/foo/Foo.kt.
Thanks for the report. I note the description of the issue (in the text) doesn't include any suspend functions. Does the repro contain suspend functions? (I haven't downloaded it yet.) If so, could you update the description?
Plugin version
2.5.0
Gradle version
8.11.1
JDK version
22
Kotlin and Kotlin Gradle Plugin (KGP) version
2.0.21
Android Gradle Plugin (AGP) version
8.7.2
Describe the bug
I have 3 modules:
module A
module B (
api(projects.A)
)module C (
implementation(projects.B)
,implementation(projects.A)
)Running
buildHealth
fails with:Running
:B:reason --id :A
:Running
:B:reason --id :A
:If I follow the advice then compiling
C
fails:The text was updated successfully, but these errors were encountered: