Home | History | Annotate | Download | only in gradle
      1 // Set the default SDK and build tools version for all apps
      2 compileSdkVersion 21
      3 buildToolsVersion = '21.1.2'
      4 
      5 // enable Java7
      6 compileOptions.sourceCompatibility JavaVersion.VERSION_1_7
      7 compileOptions.targetCompatibility JavaVersion.VERSION_1_7
      8 
      9 // Redirect lint output so that failures appear in build server error logs
     10 // https://code.google.com/p/android/issues/detail?id=73282
     11 project.tasks.whenTaskAdded { task ->
     12     if (task.name =~ /^lintVital/) {
     13         task.logging.captureStandardOutput(LogLevel.ERROR)
     14     }
     15 }
     16 
     17 // Don't build tests for android-library or android plugin
     18 // unless explicitly enabled
     19 buildTests = false
     20 
     21 // There are so many lint errors at the time being (even in the support libs)
     22 // that we need to disable them here for now
     23 lintOptions.abortOnError false
     24