Ensure javac uses uft8 as encoding

This commit is contained in:
Florian Schmaus 2014-08-19 00:46:59 +02:00
parent 342ab65138
commit a49eac7c00
1 changed files with 7 additions and 0 deletions

View File

@ -72,6 +72,13 @@ allprojects {
}
}
compileJava {
// Some systems may not have set their platform default
// converter to 'utf8', but we use unicode in our source
// files. Therefore ensure that javac uses unicode
options.encoding = "utf8"
}
if (JavaVersion.current().isJava8Compatible()) {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')