Skip to content

Commit

Permalink
Add 'javadoc' task to lifecycle check tasks
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Vieira <[email protected]>
  • Loading branch information
mark-vieira committed Oct 18, 2019
1 parent 493761c commit 6f67d35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* Since how to reap a given service is platform and service dependent, this tool
* operates on system commands to execute. It takes a single argument, a directory
* that will contain files with reaping commands. Each line in each file will be
* executed with {@link Runtime#getRuntime()#exec}.
* executed with {@link Runtime#exec(String)}.
*
* The main method will wait indefinitely on the parent process (Gradle) by
* reading from stdin. When Gradle shuts down, whether normally or abruptly, the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,10 @@ class BuildPlugin implements Plugin<Project> {
*/
(javadoc.options as CoreJavadocOptions).addBooleanOption('html5', true)
}
// ensure javadoc task is run with 'check'
project.pluginManager.withPlugin('lifecycle-base') {
project.tasks.getByName(LifecycleBasePlugin.CHECK_TASK_NAME).dependsOn(project.tasks.withType(Javadoc))
}
configureJavadocJar(project)
}

Expand Down

0 comments on commit 6f67d35

Please sign in to comment.