nebula-plugins / gradle-extra-configurations-plugin

Gradle plugin introducing a provided dependency configuration and marking a dependency as optional.
Apache License 2.0
139 stars 18 forks source link

Fix optional dependencies when multiple repositories exist for install or uploadArchives #23

Closed rjernst closed 9 years ago

rjernst commented 9 years ago

Somehow in my setup (not sure how), I end up with a second repository in install. The first one seems to be a dummy, and the second is what matters. However, with the current code, only the dummy one gets optional configuration.

This is easy to fix, and makes sense since technically both install and uploadArchives can have multiple repositories.

I would like to add a test, but it didn't seem immediately obvious how to modify the existing test for maven plugin, since it relies on the local .m2 cache...