Skip to content

Commit dfcb341

Browse files
authored
Fix generation of javadocs (elastic#76382)
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
1 parent 96627df commit dfcb341

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/lang-painless/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ tasks.named("yamlRestCompatTest").configure {
6363
* Painless plugin */
6464
tasks.register("apiJavadoc", Javadoc) {
6565
source = sourceSets.main.allJava
66-
classpath = sourceSets.main.runtimeClasspath + configurations.spi.classpath
66+
classpath = sourceSets.main.compileClasspath + sourceSets.main.output
6767
include '**/org/elasticsearch/painless/api/'
6868
destinationDir = new File(docsDir, 'apiJavadoc')
6969
}
@@ -76,6 +76,9 @@ tasks.register("apiJavadocJar", Jar) {
7676
tasks.named("assemble").configure {
7777
dependsOn "apiJavadocJar"
7878
}
79+
tasks.named("check").configure {
80+
dependsOn "apiJavadocJar"
81+
}
7982

8083
tasks.named("bundlePlugin").configure {
8184
it.into("spi") {

0 commit comments

Comments
 (0)