SetupWizardLibrary/library/self.gradle
Maurice Lam a211294e1c [SuwLib] Generate javadocs
Configure javadocs so that it can be generated with `./gradlew docs`
Split self.gradle from build.gradle, so that self.gradle can be used
to configure tasks only available to a build on ub-setupwizard-*,
while build.gradle will be used for building from source in other
gradle projects (e.g. GMS core).

Bug: 21444334
Change-Id: Icec763ce7dcf8939b7918b580e17ae22353cb38c
2015-08-10 18:04:09 +00:00

21 lines
598 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')
// 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
}
}