Skip to content

Commit 6f67d35

Browse files
committed
Add 'javadoc' task to lifecycle check tasks
Signed-off-by: Mark Vieira <[email protected]>
1 parent 493761c commit 6f67d35

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

buildSrc/reaper/src/main/java/org/elasticsearch/gradle/reaper/Reaper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* Since how to reap a given service is platform and service dependent, this tool
3838
* operates on system commands to execute. It takes a single argument, a directory
3939
* that will contain files with reaping commands. Each line in each file will be
40-
* executed with {@link Runtime#getRuntime()#exec}.
40+
* executed with {@link Runtime#exec(String)}.
4141
*
4242
* The main method will wait indefinitely on the parent process (Gradle) by
4343
* reading from stdin. When Gradle shuts down, whether normally or abruptly, the

buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy

+4
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,10 @@ class BuildPlugin implements Plugin<Project> {
676676
*/
677677
(javadoc.options as CoreJavadocOptions).addBooleanOption('html5', true)
678678
}
679+
// ensure javadoc task is run with 'check'
680+
project.pluginManager.withPlugin('lifecycle-base') {
681+
project.tasks.getByName(LifecycleBasePlugin.CHECK_TASK_NAME).dependsOn(project.tasks.withType(Javadoc))
682+
}
679683
configureJavadocJar(project)
680684
}
681685

0 commit comments

Comments
 (0)