Skip to content

Commit

Permalink
Set UTF-8 encoding for Javadoc and ProcessResources (PaperMC#5937)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla authored Jun 21, 2021
1 parent 961b98f commit 33a04d9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ subprojects {
}
}

tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
tasks.withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
options.release.set(16)
}
tasks.withType<Javadoc> {
options.encoding = Charsets.UTF_8.name()
}
tasks.withType<ProcessResources> {
filteringCharset = Charsets.UTF_8.name()
}

configure<PublishingExtension> {
repositories {
Expand Down

0 comments on commit 33a04d9

Please sign in to comment.