Set UTF-8 encoding for Javadoc and ProcessResources (#5937)

This commit is contained in:
Jason 2021-06-21 08:27:46 -07:00 committed by GitHub
parent 961b98f9cb
commit 33a04d97ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -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 {