https://kotlinlang.org logo
Title
n

Nikky

10/22/2018, 11:36 AM
compile("something>name:version") { exclude(name = "excludedDependency") }
a

adibfara

10/22/2018, 11:37 AM
This excludes a module from the dependency, for the whole dependency. What I want is to remove an added dependency from tests.
For example you want to import appCompat but you dont want recycler view that is included in it.
n

Nikky

10/22/2018, 11:39 AM
well i think you can split your dependencies in main only and test only (or at least you should be able to) i have never tried that
something more fine grained is not possible out of the box i think
a

adibfara

10/22/2018, 11:40 AM
thats my problem
i tried importing it as debugImplementation and releaseImplementation (and not having any testImplementation for it) but it doesn't work
I think it should be working that way
n

Nikky

10/22/2018, 11:41 AM
are releaseImplementations transitively added to your tests ?
that would kinda break the promises those configurations make
a

adibfara

10/22/2018, 11:42 AM
Yes, i'm getting sure that something is wrong here. I'll investigate.