mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Filter bogus AndroidX core jar file when creating javadoc
#minor-release PiperOrigin-RevId: 489202167
This commit is contained in:
parent
8a4f72b959
commit
6e73fc545d
@ -39,6 +39,7 @@ class CombinedJavadocPlugin implements Plugin<Project> {
|
|||||||
options {
|
options {
|
||||||
links "https://developer.android.com/reference", guavaReferenceUrl
|
links "https://developer.android.com/reference", guavaReferenceUrl
|
||||||
encoding = "UTF-8"
|
encoding = "UTF-8"
|
||||||
|
tags = ["hide"]
|
||||||
}
|
}
|
||||||
options.addBooleanOption "-no-module-directories", true
|
options.addBooleanOption "-no-module-directories", true
|
||||||
exclude "**/BuildConfig.java"
|
exclude "**/BuildConfig.java"
|
||||||
@ -58,6 +59,11 @@ class CombinedJavadocPlugin implements Plugin<Project> {
|
|||||||
"media-" + project.ext.androidxMediaVersion + "-api.jar")) {
|
"media-" + project.ext.androidxMediaVersion + "-api.jar")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (file ==~ /.*\/core-.\..\..-api.jar$/
|
||||||
|
&& !file.path.endsWith(
|
||||||
|
"core-" + project.ext.androidxCoreVersion + "-api.jar")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
classpath +=
|
classpath +=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user