Skip to content

Commit

Permalink
chore(build): exclude Kotlin files from Javadoc generation for all mo…
Browse files Browse the repository at this point in the history
…dules

SUITEDEV-35510

Co-authored-by: Andras Sarro <[email protected]>
  • Loading branch information
matusekma and LordAndras committed Apr 8, 2024
1 parent 0c90e73 commit 3e3f997
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Expand Down
6 changes: 0 additions & 6 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,3 @@ dependencies {

coreLibraryDesugaring(libs.android.tools.desugar)
}

tasks {
withType(Javadoc::class.java).all {
exclude("**/*.kt")
}
}

0 comments on commit 3e3f997

Please sign in to comment.