Status Update
Comments
da...@google.com <da...@google.com> #2
The issue here is that the 'partial fix' for
au...@google.com <au...@google.com> #3
Minimized repro:
- Upgrade to hilt 2.66
PROJECT_PREFIX=:hilt:hilt-navigation ALLOW_PUBLIC_REPOS=true ./gradlew bOS --dry-run -Pandroidx.constraints=false
It still loads 122 projects, so i'll look a bit further to reduce it
au...@google.com <au...@google.com> #4
Reduced it further.
- Apply
https://r.android.com/3560439 PROJECT_PREFIX=:hilt:hilt-navigation-compose ALLOW_PUBLIC_REPOS=true ./gradlew bOS --dry-run -Pandroidx.constraints=false
it is down to loading only 34 projects.
au...@google.com <au...@google.com> #5
Narrowed it down even further, it seems that the thing that breaks us is the upgrade of com.google.dagger:hilt-android:2.55
-> com.google.dagger:hilt-android:2.56
.
Something about the dependencies is causing our build to be unhappy.
au...@google.com <au...@google.com> #6
au...@google.com <au...@google.com> #8
I added a workaround, but it quite ugly and i'm not sure we want to land it as-is
bc...@google.com <bc...@google.com> #9
Just so I understand, is this something that should be fixed in Dagger, or is this just a bug in Gradle?
To add some context from our side, I think those artifact type identifiers were added when upgrading Dagger to Bazel 7.5 (CL/722877920), for example I had to add :aar
here:
Note that I didn't upgrade any of those artifacts in that CL, so my best guess is that the extra :aar
identifiers is coming from the implementation of maven.install
usages which was upgraded via the
au...@google.com <au...@google.com> #11
I think your artifacts are correct, but due to the Gradle bug in androidx context where we get dependencies that are androidx dependencies and we try to swap it with a project, it fails.
I'm trying to figure out a clean way to work around it.
au...@google.com <au...@google.com> #12
ok, i think I have a cleaner workaround. r.android.com/3562739
da...@google.com <da...@google.com> #13
Thanks for the investigation Aurimas. It seems like the plugin's dependency check is not the root cause even though it could still be improved, something I think we should still do.
FWIW we are working on building Dagger / Hilt with Gradle which will allow us to publish Gradle metadata that could have maybe prevented this issue (just a theory).
Description
libs.versions.toml
move hilt to 2.56Expected
Success
Actual
Failure:https://ge.androidx.dev/s/cw3bxidopkmy2/console-log?page=1#L108