Skip to content

Commit

Permalink
Force UTF-8 for all Javadoc tasks (#940)
Browse files Browse the repository at this point in the history
Will also now fail on error
  • Loading branch information
SamCarlberg authored Apr 20, 2019
1 parent 11bfded commit 8c9afad
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ javaSubprojects {

tasks.withType<Javadoc> {
source(tasks.named<JavaCompile>("compileJava").map { it.source })
options.encoding = "UTF-8"
}

tasks.named("check").configure {
Expand Down Expand Up @@ -183,6 +182,9 @@ tasks.register<JacocoReport>("jacocoRootReport") {
}
}

tasks.withType<Javadoc> {
isFailOnError = false
allprojects {
tasks.withType<Javadoc> {
options.encoding = "UTF-8"
isFailOnError = true
}
}

0 comments on commit 8c9afad

Please # to comment.