Explicitly set utf-8 encoding for JavaCompile tasks

This commit is contained in:
Ilya Zorin
2017-10-24 19:03:16 +03:00
committed by Ilya Gorbunov
parent e8e09dbbf8
commit 5541634187
+1
View File
@@ -464,6 +464,7 @@ fun Project.configureJvmProject(javaHome: String, javaVersion: String) {
options.isFork = true
options.forkOptions.javaHome = file(javaHome)
options.compilerArgs.add("-proc:none")
options.encoding = "UTF-8"
}
tasks.withType<KotlinCompile> {