It's not possible at the moment. We do want to expand the packagingOptions to work using glob patterns but we haven't had a chance to do it yet.
On Thu, Apr 14, 2016 at 1:47 AM, Zufar Fakhurtdinov < [email protected]> wrote: > down votefavorite > <http://stackoverflow.com/questions/36610768/exclude-resource-from-dependency-in-gradle-android-project#> > > I have a gradle android project. I've set *minifyEnabled true* in my > build.gradle > > I want to exclude some resource files from dependencies. It's for example > gwt.xml files and logging configuration files. > > proguard copy all resource files by default. So, if I use proguard > directly, I can write > > -injars in.jar(!**/*.gwt.xml) > > *But how can I do it with gradle android plugin?* > Actually I don't need any resources from certain dependencies. > ------------------------------ > > P.s. I know about > > packagingOptions { exclude 'Proj.gwt.xml' } > > It looks working with one file per *exclude* It's pretty unusable to list > all files here. > > -- > You received this message because you are subscribed to the Google Groups > "adt-dev" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Xavier Ducrohet Android SDK Tech Lead Google Inc. http://developer.android.com | http://tools.android.com Please do not send me questions directly. Thanks! -- You received this message because you are subscribed to the Google Groups "adt-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
