diff --git a/build.gradle b/build.gradle index 47acc70d80..a6e696b7c4 100644 --- a/build.gradle +++ b/build.gradle @@ -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() diff --git a/mdk/build.gradle b/mdk/build.gradle index b988736c08..4f1e84df32 100644 --- a/mdk/build.gradle +++ b/mdk/build.gradle @@ -199,3 +199,7 @@ publishing { } } } + +tasks.withType(JavaCompile).configureEach { + options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation +}