diff --git a/modules/lang-painless/build.gradle b/modules/lang-painless/build.gradle index a45a31dcb3155..9383aacfeb3b6 100644 --- a/modules/lang-painless/build.gradle +++ b/modules/lang-painless/build.gradle @@ -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') } @@ -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") {