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

Optional dependencies are pulled in transitively via a project dependency #41

Open wilkinsona opened 5 years ago

wilkinsona commented 5 years ago

When a project, one, declares a dependency as optional, another project that depends upon project one will pick up the optional dependency transitively. My exception is that an optional dependency will behave as it does in Maven and will not be picked up transitively. You can run ./gradlew verifyRuntimeClasspath against the attached project to reproduce the unexpected behaviour.