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
Expected behavior
I would expect that since DevProperties is only referenced in the dev source set, that the dependency should be on devImplementation instead of implementation.
The text was updated successfully, but these errors were encountered:
Also I was disabling all of the prod variants for local builds. When I stopped doing that, buildHealth now says I should be using devDebugImplementation instead of devImplementation.
./gradlew buildHealth currently works in that project.
Changing implementation(projects.destinations.devSettings) to devImplementation in nav/build.gradle.kts causes buildHealth to advise changing from devImplementation to implementation, but as far as I can tell, none of its API is accessed outside of the dev source set.
Still not sure if this is related or not, but if you comment out dependency.analysis.android.ignore.variants in gradle.properties and run CI=true ./gradlew buildHealth (the CI=true enables the prod variant) there are a lot more errors.
Thanks for the repro! I'll have to take a look to be sure, but in general when you configure the plugin to ignore/exclude various things, the final report can be incorrect for some meaning of that word. The report will have the greatest level of accuracy ("perfect" minus some possible bugs) when the analysis is global.
Plugin version
2.4.2
Gradle version
8.11
JDK version
22
(Optional) Kotlin and Kotlin Gradle Plugin (KGP) version
2.0.21
(Optional) Android Gradle Plugin (AGP) version
8.7.2
(Optional)
reason
output for bugs relating to incorrect adviceDescribe the bug
I have an environment flavor that has two values; dev, and prod.
One of my modules has code in the
main
,dev
, andprod
source sets. It also has adevImplementation(projects.devProperties)
dependency:main
dev
prod
When I run
buildHealth
I get the following advice:Running
reason --id :devProperties
prints:Expected behavior
I would expect that since
DevProperties
is only referenced in thedev
source set, that the dependency should be ondevImplementation
instead ofimplementation
.The text was updated successfully, but these errors were encountered: