Merge "Add descriptions to a few important support library tasks." into nyc-support-25.2-dev am: ea33f184d6 am: e51c9b3f95
am: 97d76d5964
Change-Id: I77c2d66a2ce144fe1c8a8759af1b8ff86f3de4ef
diff --git a/build.gradle b/build.gradle
index 81e0726..d43888b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -216,6 +216,9 @@
// Generates online docs.
task generateDocs(type: DoclavaTask, dependsOn: configurations.doclava) {
+ group = JavaBasePlugin.DOCUMENTATION_GROUP
+ description = 'Generates d.android.com style documentation.'
+
docletpath = configurations.doclava.resolve()
destinationDir = new File(project.docsDir, "online")
@@ -289,6 +292,9 @@
// Copies generated API files to current version.
task updateApi(type: UpdateApiTask, dependsOn: generateApi) {
+ group JavaBasePlugin.VERIFICATION_GROUP
+ description 'Invoke Doclava\'s ApiCheck tool to update current.txt based on current changes.'
+
newApiFile = new File(project.docsDir, 'release/current.txt')
oldApiFile = new File(project.rootDir, 'api/current.txt')
newRemovedApiFile = new File(project.docsDir, 'release/removed.txt')
@@ -612,7 +618,7 @@
}
project.afterEvaluate {
- // The archivesBaseName isn't available intially, so set it now
+ // The archivesBaseName isn't available initially, so set it now
def createZipTask = project.tasks.findByName("createSeparateZip")
if (createZipTask != null) {
createZipTask.appendix = archivesBaseName
diff --git a/buildSrc/src/main/groovy/android/support/checkapi/CheckApiTask.groovy b/buildSrc/src/main/groovy/android/support/checkapi/CheckApiTask.groovy
index 4517105..c10bc9c 100644
--- a/buildSrc/src/main/groovy/android/support/checkapi/CheckApiTask.groovy
+++ b/buildSrc/src/main/groovy/android/support/checkapi/CheckApiTask.groovy
@@ -214,6 +214,7 @@
public CheckApiTask() {
group = 'Verification'
+ description = 'Invoke Doclava\'s ApiCheck tool to make sure current.txt is up to date.'
}
private Set<File> collectAndVerifyInputs() {