Add 'javadoc' task to lifecycle check tasks (#48214)
This commit is contained in:
parent
f4fa61b2f2
commit
178204703a
|
@ -37,7 +37,7 @@ import java.util.stream.Stream;
|
|||
* 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
|
||||
|
|
|
@ -689,6 +689,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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue