-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Cannot change usage of dependency configuration 'xxx' after it has been included in dependency resolution. #338
Comments
Actually I think setting |
Is this the same as #234? Also, why is |
Probably, yes. My workaround for this issue is:
I couldn't get rid of the error messages by using |
I have had this plugin applied to a project of mine - https://github.com/jaredsburrows/android-gif-search. It has now been migrated to ksp instead of I can look into removing these warnings produced by the plugin scanning the configurations. |
For those interested, the meaning of those flags is discussed at https://docs.gradle.org/7.5.1/userguide/declaring_dependencies.html#sec:resolvable-consumable-configs. Setting the isCanBeResolved turns producer and internal configurations to consumers. In the project I am working on doing so has unexpected side-effects on the Gradle build cache, so that it no longer matches! Admittedly I do not fully understand the effect on the build cache, but I could resolve it by running the license plugin in a separate Gradle invocation separate from all other tasks. My guess is changing isCanBeResolved leads to a different order of dependencies in other configurations... I am saying changing the flag should not be necessary because a configuration that is not resolvable contributes files to the build only if it is resolved indirectly via some other configuration extending upon it. But in that case the files in question are part of the extending configuration as well and so are picked up by the license plugin nevertheless. |
The plugin spits a lot of warnings while running its
licenseDebugReport
task:Some warnings contain a slightly different error message:
AGP version: 8.1.0
Plugin version: 0.9.3
The text was updated successfully, but these errors were encountered: