From 3e3f9979036a527582cf1d66579ec2684a43b82e Mon Sep 17 00:00:00 2001 From: Marton Matusek Date: Mon, 8 Apr 2024 13:42:59 +0200 Subject: [PATCH] chore(build): exclude Kotlin files from Javadoc generation for all modules SUITEDEV-35510 Co-authored-by: Andras Sarro --- build.gradle.kts | 5 ++++- sample/build.gradle.kts | 6 ------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index a99df0a5..ebf796a1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -83,8 +83,11 @@ tasks { } } } +} - withType(Javadoc::class.java).all { +allprojects { + // Exclude Kotlin files from Javadoc generation because Kotlin files are not supported by Dokka + tasks.withType(Javadoc::class.java).all { exclude("**/*.kt") } } diff --git a/sample/build.gradle.kts b/sample/build.gradle.kts index 5b96e492..f7df7cfe 100644 --- a/sample/build.gradle.kts +++ b/sample/build.gradle.kts @@ -154,9 +154,3 @@ dependencies { coreLibraryDesugaring(libs.android.tools.desugar) } - -tasks { - withType(Javadoc::class.java).all { - exclude("**/*.kt") - } -} \ No newline at end of file