I think you can do : variantFilter {
if (it.buildType.name.equals("debug") { it.ignore = true } } On Tue, Jul 28, 2015 at 5:31 PM Artem Zinnatullin < artem.zinnatul...@gmail.com> wrote: > Hello, ADT team. > > Is it possible to disable some *buildType*? > > In particular, we would like to disable "*debug*" *buildType* for our > library projects because we usually build them via "*clean build*" which > causes double work on building exactly same code for debug and release > build types (we never use debug specific code in library projects). > > I understand that we can specify Gradle tasks which will build only > release version of the library, but it's just does not feel like a good > solution. > > Would be nice to have something like: > > android { > buildTypes { > debug { > enabled false > } > } > } > > -- > 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 adt-dev+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 adt-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.