Running lint for specific build variant

50 views
Skip to first unread message

Filip Zymek

unread,
Feb 19, 2014, 6:00:51 AM2/19/14
to gradle-androi...@googlegroups.com
Hello,

Gradle documentation mentions, that from gradle plugin 0.7.0 it is possible to run lint for specific variant. How one can achive that?
I've tried supplying different lintOptions for debug and release variants, but it seems that debug configuration was run on both of variants.
Here part my build.gradle

 buildTypes {

        release {
            signingConfig signingConfigs.release
            lintOptions {
                abortOnError true
            }
        }

        debug {
            lintOptions {
                abortOnError false

                // turn off checking the given issue id's
                disable 'MissingTranslation'
            }
        }
    }


I want to ignore missing translation for debug build, but enable this check for release buils. is there way to do that?
Reply all
Reply to author
Forward
0 new messages