Skip to content

Commit

Permalink
support build on OS with non-UTF8 as default charset (#96)
Browse files Browse the repository at this point in the history
chore: support build on non-UTF8 OS

Co-authored-by: Filip Jirsák <filip@jirsak.org>
  • Loading branch information
qxo and FilipJirsak committed Jan 22, 2023
1 parent 7ee1591 commit 666b4e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle
Expand Up @@ -8,7 +8,11 @@ archivesBaseName = 'dom4j'

sourceCompatibility = 1.8

tasks.withType(JavaCompile) + tasks.withType(Javadoc) {
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
options.charSet = options.encoding
}
Expand Down

0 comments on commit 666b4e3

Please sign in to comment.