SetupWizardLibrary/library/self.gradle
Maurice Lam e23a451a80 [SuwLib] Output lint in stderr
Put lint output in stderr so that lint errors catched in build server
can be seen.

Also removed the workaround to capture lint output in log since that
issue has been fixed.

Change-Id: I30a5695faa3facdb8986d5a66975c9ea3dc7bf8f
2015-08-18 18:38:47 -07:00

34 lines
858 B
Groovy

/**
* This self.gradle build file is only run when built in ub-setupwizard-* branches.
*/
apply plugin: 'dist'
apply from: 'build.gradle'
apply from: '../tools/gradle/docs.gradle'
task docs(dependsOn: 'javadocPlatformRelease')
android.lintOptions {
abortOnError true
htmlReport true
textOutput 'stderr'
textReport true
xmlReport false
}
// Run lint for all variants
android.libraryVariants.all { variant ->
variant.assemble.dependsOn(tasks.findByName('lint'))
}
// Output all test APKs to the distribution folder
def distTask = tasks.findByName('dist')
if (distTask) {
android.testVariants.all { variant ->
// Make the dist task depend on the test variant, so the test APK will be built
distTask.dependsOn variant.assemble
// TODO: remap the different test variants to different file names
}
}