Skip to content

Commit

Permalink
Filter bogus AndroidX core jar file when creating javadoc
Browse files Browse the repository at this point in the history
#minor-release

PiperOrigin-RevId: 489202167
  • Loading branch information
microkatz committed Nov 21, 2022
1 parent 289a0e0 commit 7e82d4e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions javadoc_combined.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class CombinedJavadocPlugin implements Plugin<Project> {
options {
links "https://developer.android.com/reference", guavaReferenceUrl
encoding = "UTF-8"
tags = ["hide"]
}
options.addBooleanOption "-no-module-directories", true
exclude "**/BuildConfig.java"
Expand All @@ -58,6 +59,11 @@ class CombinedJavadocPlugin implements Plugin<Project> {
"media-" + project.ext.androidxMediaVersion + "-api.jar")) {
return false;
}
if (file ==~ /.*\/core-.\..\..-api.jar$/
&& !file.path.endsWith(
"core-" + project.ext.androidxCoreVersion + "-api.jar")) {
return false;
}
return true;
}
classpath +=
Expand Down

0 comments on commit 7e82d4e

Please sign in to comment.