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