Add 'javadoc' task to lifecycle check tasks (#48214)

This commit is contained in:
Mark Vieira 2019-10-21 09:44:41 -07:00
parent f4fa61b2f2
commit 178204703a
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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)
}