add file.encoding=UTF-8 to native builds, refs #1105

Signed-off-by: morph027 <stefan.heitmueller@gmx.com>
This commit is contained in:
morph027 2023-12-19 18:30:57 +01:00
parent 5e7899675e
commit 895a92a659
No known key found for this signature in database
GPG key ID: BF17A54BB873BE58

View file

@ -25,6 +25,8 @@ graalvmNative {
binaries {
this["main"].run {
buildArgs.add("--install-exit-handlers")
buildArgs.add("-Dfile.encoding=UTF-8")
buildArgs.add("-J-Dfile.encoding=UTF-8")
resources.autodetect()
configurationFileDirectories.from(file("graalvm-config-dir"))
if (System.getenv("GRAALVM_HOME") == null) {