eea7ecd835
Change-Id: I699f821f3b7bd5c923f99e37f05bf0953c8f093e
(cherry picked from commit f4fea9000b
)
24 lines
793 B
INI
24 lines
793 B
INI
// Set the default SDK and build tools version for all apps
|
|
compileSdkVersion 21
|
|
buildToolsVersion = '21.1.0'
|
|
|
|
// enable Java7
|
|
compileOptions.sourceCompatibility JavaVersion.VERSION_1_7
|
|
compileOptions.targetCompatibility JavaVersion.VERSION_1_7
|
|
|
|
// Redirect lint output so that failures appear in build server error logs
|
|
// https://code.google.com/p/android/issues/detail?id=73282
|
|
plugin.project.tasks.whenTaskAdded { task ->
|
|
if (task.name =~ /^lintVital/) {
|
|
task.logging.captureStandardOutput(LogLevel.ERROR)
|
|
}
|
|
}
|
|
|
|
// Don't build tests for android-library or android plugin
|
|
// unless explicitly enabled
|
|
buildTests = false
|
|
|
|
// There are so many lint errors at the time being (even in the support libs)
|
|
// that we need to disable them here for now
|
|
lintOptions.abortOnError false
|