How can you add additional dependencies depending ...
# gradle
h
How can you add additional dependencies depending on the configuration at the configuration stage with included and substituted modules? Use-case: I want to support configuration cache for licensee. Licensee resolves the dependency pom files and checks its license, so it needs to add a
pom
dependency for each dependency, transitively. At the moment, this is done in the task action, so the pom dependency is added during the task action, but this breaks the configuration cache. I moved the additional pom file dependency to the configuration stage, but now I have a problem with module substitution:
Adding a dependency substitution rule to a configuration changes the timing of when that configuration is resolved.
Is there any workaround possible? https://github.com/cashapp/licensee/pull/141