mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Filter bogus AndroidX core jar file when creating javadoc
#minor-release
PiperOrigin-RevId: 489202167
(cherry picked from commit 6e73fc545d)
This commit is contained in:
parent
4adfb5f50f
commit
5eddd9689f
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Reference in a new issue