Skip to content

Commit

Permalink
fixed javadocs generation
Browse files Browse the repository at this point in the history
  • Loading branch information
DenuxPlays committed Oct 8, 2023
1 parent 2e3958c commit 6d86625
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ To find all missing javadocs / all javadocs warnings execute this command:
javadoc.apply {
isFailOnError = isCI

//Javadocs are scuffed on these version I don't know and care why.
if (javaVersion <= JavaVersion.VERSION_13) {
//Fixes the error where the executor could not be found and the build fails.
if (javaVersion <= JavaVersion.VERSION_20) {
isFailOnError = false
}

Expand All @@ -141,7 +141,7 @@ javadoc.apply {
if (javaVersion >= JavaVersion.VERSION_13) {
opt.addBooleanOption("Xdoclint:all", true)
} else {
//Can be ignored because JavaDocs are generated using Java 17.
//Can be ignored because JavaDocs are generated using Java 21.
opt.addBooleanOption("Xdoclint:all,-missing,-accessibility", true)
}
}
Expand Down

0 comments on commit 6d86625

Please sign in to comment.