From 1414859773462609d88fa2051de60e80013b275d Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Tue, 7 Jan 2020 22:11:47 +0100 Subject: [PATCH] Expand javadocs Expanding javadocs task a bit makint it easier to visualize using jenkins --- buildSrc/src/main/kotlin/PlatformConfig.kt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/buildSrc/src/main/kotlin/PlatformConfig.kt b/buildSrc/src/main/kotlin/PlatformConfig.kt index f8c764d40..d01728c9e 100644 --- a/buildSrc/src/main/kotlin/PlatformConfig.kt +++ b/buildSrc/src/main/kotlin/PlatformConfig.kt @@ -7,6 +7,7 @@ import org.gradle.api.tasks.bundling.Jar import org.gradle.api.tasks.javadoc.Javadoc import org.gradle.api.tasks.testing.Test import org.gradle.external.javadoc.CoreJavadocOptions +import org.gradle.external.javadoc.StandardJavadocDocletOptions import org.gradle.kotlin.dsl.apply import org.gradle.kotlin.dsl.configure import org.gradle.kotlin.dsl.dependencies @@ -53,7 +54,19 @@ fun Project.applyPlatformAndCoreConfiguration() { // Java 8 turns on doclint which we fail tasks.withType().configureEach { + delete("docs/javadoc") + setDestinationDir(file("docs/javadoc")) + title = "${project.name} ${project.version} API" + (options as StandardJavadocDocletOptions).addStringOption("author", "true") (options as CoreJavadocOptions).addStringOption("Xdoclint:none", "-quiet") + subprojects.forEach { proj -> + proj.tasks.withType().forEach { javadocTask -> + source += javadocTask.source + classpath += javadocTask.classpath + excludes += javadocTask.excludes + includes += javadocTask.includes + } + } } tasks.register("javadocJar") {