diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2019-05-29 23:02:54 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2019-05-29 23:02:54 +0000 |
commit | 3e3cf2b4a5ab378cda6f111a18f405dc4d54bbb7 (patch) | |
tree | 8f97088aae2022bf105ea37a0a7ab09bf9220a4a | |
parent | 337cc5a2ba8e50eb99a72a59d491f902b78a99b7 (diff) | |
parent | 48ecb31e142279eeac71081640ed70f91b26cb2e (diff) | |
download | support-3e3cf2b4a5ab378cda6f111a18f405dc4d54bbb7.tar.gz |
Merge "Remove legacy code from annotation build.gradle" into androidx-master-dev
-rw-r--r-- | annotations/build.gradle | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/annotations/build.gradle b/annotations/build.gradle index 2a03326b005..0aafc5c56e3 100644 --- a/annotations/build.gradle +++ b/annotations/build.gradle @@ -16,41 +16,16 @@ jar { // below by the annotationsZip task. exclude('androidx/annotation/ProductionVisibility.class') exclude('androidx/annotation/DimensionUnit.class') - preserveFileTimestamps = false - reproducibleFileOrder = true -} - -// configuration for the javadoc to include all source sets. -javadoc { - source sourceSets.main.allJava -} - -// Disable strict javadoc lint checks with javadoc v8 builds on Mac. http://b/26744780 -if (JavaVersion.current().isJava8Compatible()) { - tasks.withType(Javadoc) { - if (options.doclet == null) { - options.addBooleanOption('Xdoclint:none', true) - } - // We set the group to null so it doesn't show if a user runs `./gradlew tasks` - // because this task is specific to this project - group = null - } -} - -task javadocJar(type: Jar, dependsOn:javadoc) { - classifier 'javadoc' - from javadoc.destinationDir } task annotationsZip(type: Zip) { - classifier 'annotations' - from 'external-annotations' + archiveClassifier.set("annotations") + from("external-annotations") } -// add javadoc/source/annotations jar tasks as artifacts +// add annotations jar task as artifacts artifacts { archives jar - archives javadocJar archives annotationsZip } |