-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Used constant of dependency not recognized #408
Comments
The kotlin compiler doesn't use the constant pool (unlike Thanks for the reproducer, I'll take a look. |
The reproducer does not have an import because I just used the same package when creating it. When I move the usage to a different package and add the import I'm seeing what I see in our work project: Kotlin 1.4.32
Kotlin 1.5.10
|
Very interesting. Thanks!
On June 3, 2021, GitHub ***@***.***> wrote:
The reproducer does not have an import because I just used the same
package when creating it. When I move the usage to a different package
and add the import I'm seeing what I see in our work project:
Kotlin 1.4.32
> Task :buildHealth Advice for root project Looking good! No changes
needed Advice for project :settings Looking good! No changes needed
Kotlin 1.5.10
> Task :buildHealth Advice for root project Looking good! No changes
needed Advice for project :settings Unused dependencies which should
be removed: - implementation(project(":"))
constants2.zip <https://github.com/autonomousapps/dependency-analysis-
android-gradle-plugin/files/6598733/constants2.zip>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<https://github.com/autonomousapps/dependency-analysis-android-gradle-
plugin/issues/408#issuecomment-854717200>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/ABJG5POGKTD45JHPCSFSQELTRDG7JANCNFSM46ASM5RQ>.
|
Fixed. |
Build scan link
Reproducer instead constants.zip
Plugin version
0.73.1-SNAPSHOT
Gradle version
7.0.0
Android Gradle Plugin (AGP) version
n/a
Describe the bug
The root project declares a constant like this
Another project uses that constant, for example
The advice is to remove the dependency on the project declaring the constant, which would then make compilation fail
To Reproduce
Steps to reproduce the behavior:
buildHealth
in the sample projectExpected behavior
There shouldn't be advice to remove the dependency
Additional context
In my project from work where I initially found this it only started happening after updating from Kotlin 1.4.32 to 1.5.10. In the reproducer it seems to happen regardless of Kotlin version
The text was updated successfully, but these errors were encountered: