Clone
Cédric Champeau
committed
on 24 Sep 18
Make sure relocated POMs are visible in the `Compile` scope
This commit changes the dependency scope for relocated POM files. Previously,
we… Show more
Make sure relocated POMs are visible in the `Compile` scope

This commit changes the dependency scope for relocated POM files. Previously,

we added a dependency using the `Runtime` scope. But since we activated derived

variants by default, we're using attribute based matching, which has the consequence

that a dependency added in the `compile` (`implementation`) configuration will

not get runtime dependencies anymore. Since the runtime classpath extends the

compile classpath, this commit changes the default mapped scope to `compile`, so

that relocated dependencies are visible to both scopes. It should have no

impact on leaking dependencies since the transitive, relocated, dependency will

have its `runtime` or `compile` dependencies selected appropriately.

Fixes gradle/gradle-private#1527

Show less

green-master + 437 more