Tucker Barbour
10/20/2020, 10:25 AMMarc Knaup
10/20/2020, 10:32 AMapi
but you want it to be implementation
?Tucker Barbour
10/20/2020, 11:53 AMA
which lists a dependency on B
where B
is pulled from Maven Central (not inside my own project). B
further depends on C
which may or may not have been built with gradle or using proper module encapsulation. Currently A
can import packages from C
even though it only declared a dependency on B
. I would like to prevent this situation where a library can depend on transitive dependencies.Marc Knaup
10/20/2020, 11:55 AMexclude("C")
in implementation("B") { … }
and then add it manually as runtimeOnly("C")
to my project.
So it’s still there at runtime but hidden from your code.Tucker Barbour
10/20/2020, 11:59 AM