Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Javadoc workarounds for LUCENE-9132

Dawid Weissd800b8060b8e
diff --git a/gradle/defaults-javadoc.gradle b/gradle/defaults-javadoc.gradle
index cf6a8d416bd..adad90c11a2 100644
--- a/gradle/defaults-javadoc.gradle
+++ b/gradle/defaults-javadoc.gradle
@@ -22,11 +22,11 @@ allprojects {
opts.tags(
"lucene.experimental:a:WARNING: This API is experimental and might change in incompatible ways in the next release.",
"lucene.internal:a:NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.",
- "lucene.spi:t:SPI Name (Note: This is case-insensitive. e.g., if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).",
+ "lucene.spi:t:SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).",
)
opts.addStringOption("-release", "11")
- opts.addBooleanOption('Xdoclint:all,-accessibility,-missing,-html,-syntax', true)
+ opts.addBooleanOption('Xdoclint:all,-missing,-accessibility,-html', true)
def libName = project.path.startsWith(":lucene") ? "Lucene" : "Solr"
opts.overview = file("src/main/java/overview.html").toString()
@@ -36,3 +36,24 @@ allprojects {
}
}
}
+
+// https://issues.apache.org/jira/browse/LUCENE-9132: Add apache yetus so that javadoc doesn't fail
+configure([
+ project(":solr:solrj"),
+ project(":solr:core"),
+ project(":solr:test-framework"),
+]) {
+ configurations {
+ javadocFix
+ }
+
+ dependencies {
+ javadocFix("org.apache.yetus:audience-annotations:0.11.1")
+ }
+
+ plugins.withType(JavaPlugin) {
+ javadoc {
+ classpath += configurations.javadocFix.asFileTree
+ }
+ }
+}