Set Javadoc and JavaCompile encoding to UTF-8

Closes gh-593
This commit is contained in:
Andy Wilkinson
2019-03-13 09:20:42 +00:00
parent c9db399713
commit 91653a300a

View File

@@ -103,6 +103,10 @@ subprojects {
options.compilerArgs = [ '-Xlint:deprecation', '-Xlint:-options', '-Werror' ]
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
}
configure(subprojects - project(":docs")) { subproject ->
@@ -149,6 +153,7 @@ configure(subprojects - project(":docs")) { subproject ->
options.docTitle = "${options.header} API"
options.links = javadocLinks
options.addStringOption '-quiet'
options.encoding = 'UTF-8'
}
task sourcesJar(type: Jar) {