Use UTF-8 charset for Java compilation (#8486)

This commit is contained in:
Paint_Ninja authored and GitHub committed 2022-03-06 14:53:15 +00:00
1 parent 64ded22276
commit 6cb444455d
2 files changed
+8

No files matched your search

+4
View File
@@ -1543,6 +1543,10 @@ project(':forge') {
}
// Since we need the modules in the bootstrap, we need to make sure they are compiled before we do each run
afterEvaluate { prepareRuns.dependsOn(':fmlcore:jar', ':fmlloader:jar', ':javafmllanguage:jar', ':mclanguage:jar') }
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
}
}
//evaluationDependsOnChildren()
+4
View File
@@ -199,3 +199,7 @@ publishing {
}
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
}