Filter bogus AndroidX core jar file when creating javadoc

#minor-release

PiperOrigin-RevId: 489202167
This commit is contained in:
michaelkatz 2022-11-17 15:04:09 +00:00 committed by microkatz
parent 8a4f72b959
commit 6e73fc545d

View File

@ -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"
@ -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 +=