Skip to content

Commit

Permalink
Fix generation of javadocs (elastic#76382)
Browse files Browse the repository at this point in the history
The javadoc generation for painless api classes was broken by a recent
commit. This commit fixes it by correct the classpath used to run the
javadoc task. Additionally, the task is added to `check` to ensure it
runs with CI.

closes elastic#76373
  • Loading branch information
rjernst authored Aug 11, 2021
1 parent 96627df commit dfcb341
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/lang-painless/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tasks.named("yamlRestCompatTest").configure {
* Painless plugin */
tasks.register("apiJavadoc", Javadoc) {
source = sourceSets.main.allJava
classpath = sourceSets.main.runtimeClasspath + configurations.spi.classpath
classpath = sourceSets.main.compileClasspath + sourceSets.main.output
include '**/org/elasticsearch/painless/api/'
destinationDir = new File(docsDir, 'apiJavadoc')
}
Expand All @@ -76,6 +76,9 @@ tasks.register("apiJavadocJar", Jar) {
tasks.named("assemble").configure {
dependsOn "apiJavadocJar"
}
tasks.named("check").configure {
dependsOn "apiJavadocJar"
}

tasks.named("bundlePlugin").configure {
it.into("spi") {
Expand Down

0 comments on commit dfcb341

Please sign in to comment.