mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
gradle build: setup compiler charset
This commit is contained in:
parent
f09a427827
commit
895ec99826
|
@ -87,6 +87,9 @@ val generateConfig by tasks.registering {
|
|||
""".trimIndent())
|
||||
}
|
||||
}
|
||||
tasks.compileJava.configure { dependsOn(generateConfig) }
|
||||
tasks.compileJava.configure {
|
||||
dependsOn(generateConfig)
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
sourceSets.main.configure { java.srcDir(generatedConfigDir) }
|
|
@ -73,6 +73,10 @@ gradle.allprojects {
|
|||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
}
|
||||
|
||||
gradle.afterProject {
|
||||
|
|
|
@ -61,6 +61,10 @@ gradle.allprojects {
|
|||
|
||||
gradle.allprojects {
|
||||
apply(plugin = "javaVersion")
|
||||
|
||||
tasks.withType<JavaCompile>().configureEach {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
}
|
||||
|
||||
gradle.afterProject {
|
||||
|
|
Loading…
Reference in New Issue
Block a user