From 713c4ad0d24079c30c4268b9db8fbc3d5c679e9e Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Fri, 3 Jun 2022 23:13:41 +0200 Subject: [PATCH] Remove aggregation of cross module javadocs (#3646) chore: Don't aggregate javadocs anymore --- build.gradle.kts | 50 ------------------------------------------------ 1 file changed, 50 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index cb8297164..282eaabd5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -66,7 +66,6 @@ subprojects { } } -val javadocDir = rootDir.resolve("docs").resolve("javadoc").resolve(project.name) allprojects { dependencies { // Tests @@ -172,11 +171,6 @@ allprojects { } tasks { - named("clean") { - doFirst { - javadocDir.deleteRecursively() - } - } compileJava { options.compilerArgs.addAll(arrayOf("-Xmaxerrs", "1000")) @@ -187,16 +181,6 @@ allprojects { options.encoding = "UTF-8" } - javadoc { - val opt = options as StandardJavadocDocletOptions - opt.addStringOption("Xdoclint:none", "-quiet") - opt.tags( - "apiNote:a:API Note:", - "implSpec:a:Implementation Requirements:", - "implNote:a:Implementation Note:" - ) - } - shadowJar { this.archiveClassifier.set(null as String?) this.archiveFileName.set("${project.name}-${project.version}.${this.archiveExtension.getOrElse("jar")}") @@ -221,37 +205,3 @@ nexusPublishing { } } } - -tasks { - val aggregatedJavadocs = create("aggregatedJavadocs") { - title = "${project.name} ${project.version} API" - setDestinationDir(javadocDir) - options.destinationDirectory = javadocDir - - doFirst { - javadocDir.deleteRecursively() - } - }.also { - it.group = "Documentation" - it.description = "Generate javadocs from all child projects as if it was a single project" - } - - subprojects.forEach { subProject -> - subProject.afterEvaluate { - subProject.tasks.withType().forEach { task -> - aggregatedJavadocs.source += task.source - aggregatedJavadocs.classpath += task.classpath - aggregatedJavadocs.excludes += task.excludes - aggregatedJavadocs.includes += task.includes - - val rootOptions = aggregatedJavadocs.options as StandardJavadocDocletOptions - val subOptions = task.options as StandardJavadocDocletOptions - rootOptions.links(*subOptions.links.orEmpty().minus(rootOptions.links.orEmpty().toSet()).toTypedArray()) - } - } - } - - build { - dependsOn(aggregatedJavadocs) - } -}