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
Issue with enableAggregatingTask flag / AGP 7.0 / oss-licenses #2744
Issue with enableAggregatingTask flag / AGP 7.0 / oss-licenses #2744
Comments
I just found the same error occurs with another plugin we are using on our pipeline that scans dependencies for vulnerabilities (Black Duck by Synopsis). Really wondering if this can be fixed simply through a Hilt fix or if all plugins that plays with dependencies will need to be updated to support the new For reference, the blackduck plugin's source code can be found here which underneath uses blackduck's integration-gradle-inspector
|
The issue is in the OSS plugin, here: https://github.com/google/play-services-plugins/blob/4ef3f3edd38f189e382699c977ede3b08174e499/oss-licenses-plugin/src/main/groovy/com/google/android/gms/oss/licenses/plugin/DependencyTask.groovy#L164-L166 Specifically they do dependency resolution during task execution which is not good, they should declare those as inputs of the task so they get resolved correctly. You should file a bug for that project. As a workaround you can do the dependency resolution for the task earlier:
Note that the configuration used is based on the one failing for you, for the stacktrace above is |
@danysantiago |
workaroud work but still waiting a clean fix |
Technical informations:
Android Studio Arctic Fox | 2020.3.1 Beta 5
Build #AI-203.7717.56.2031.7479365, built on June 21, 2021
Runtime version: 11.0.10+0-b96-7281165 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.4
AGP: 7.0.0-beta05
Gradle: 7.0.2
Kotlin: 1.5.20
Hilt 2.37
Description:
Hi, I encountered an issue when enabling the new option
enableAggregatingTask
on dagger hilt. The bug is related to the oss-licenses-plugin but I am not sure if the bug is actually with the plugin or hilt new flag, or a combinaison of both. In order to reproduce the problem, you need to have a flavour with a name alphabetically greater thanhilt
, be onAGP 7.0.0-beta05
, withHilt 2.37
and the flagenableAggregatingTask=true
.Repro steps (see MCVE project on GitHub)
./gradlew assembleGolfDebug
Possible workarounds
enableAggregatingTask
tofalse
7.0.0-beta05
to4.2.2
oss-licenses-plugin
hilt
Stacktrace:
The text was updated successfully, but these errors were encountered: