unity-jar-resolver icon indicating copy to clipboard operation
unity-jar-resolver copied to clipboard

How to exclude a library from dependencies

Open mahdi-malv opened this issue 5 years ago • 2 comments

Hi. In Gradle, there's an option to exclude a library from one's dependencies to avoid it from being added. Like:

implementation("androidx.work:work-rxjava2:${versions.workManager}")  
{ exclude group: 'io.reactivex.rxjava2', module: 'rxjava' }

So when I want to add another library that is a custom version of rxjava, there won't be any duplicate entry error.

Is there any feature in jar resolver?

p.s. If I use mainTemplate.gradle, I can do this manually, but if I don't, I can't.

mahdi-malv avatar Jul 11 '19 08:07 mahdi-malv

Hi @mahdi-malv

Unfortunately there is no such feature in the jar resolver. As you mention though, you can accomplish something like this using the mainTemplate.gradle, if need be.

a-maurice avatar Jul 11 '19 20:07 a-maurice

I believe this would be a great addition to the jar-resolver

vitorbaraujo avatar Oct 01 '19 01:10 vitorbaraujo