Gradle Version: 3.1
Operating System and JVM version: Windows 7
Is this a regression? If yes, which version of Gradle do you know it last worked for? No
If I declare a compile dependency (e.g. to io.reactivex:rxnetty:0.4.19) I see that gradle also puts all transitive runtime dependencies into the compile configuration (in this case for example io.reactivex:rxjava:1.0.17). Isnt this a bug? Can i configure gradle to be “scope-safe” and only put transitive compile dependencies into my compile scope?
Example:
apply plugin: 'java'
dependencies {
compile 'io.reactivex:rxnetty:0.4.19'
}
Here is the output of gradlew.bat dependencies --configuration compile
:dependencies
------------------------------------------------------------
Root project
------------------------------------------------------------
compile - Dependencies for source set 'main'.
\--- io.reactivex:rxnetty:0.4.19
+--- io.reactivex:rxjava:1.0.17
+--- io.netty:netty-codec-http:4.1.5.Final
| \--- io.netty:netty-codec:4.1.5.Final
| \--- io.netty:netty-transport:4.1.5.Final
| +--- io.netty:netty-buffer:4.1.5.Final
| | \--- io.netty:netty-common:4.1.5.Final
| \--- io.netty:netty-resolver:4.1.5.Final
| \--- io.netty:netty-common:4.1.5.Final
+--- io.netty:netty-handler:4.1.5.Final
| +--- io.netty:netty-buffer:4.1.5.Final (*)
| +--- io.netty:netty-transport:4.1.5.Final (*)
| \--- io.netty:netty-codec:4.1.5.Final (*)
+--- io.netty:netty-transport-native-epoll:4.1.5.Final
| +--- io.netty:netty-common:4.1.5.Final
| +--- io.netty:netty-buffer:4.1.5.Final (*)
| \--- io.netty:netty-transport:4.1.5.Final (*)
\--- org.slf4j:slf4j-api:1.7.6
(*) - dependencies omitted (listed previously)
BUILD SUCCESSFUL
Total time: 4.225 secs