From 7e11a6c0fe0f15c17c004087a598c121c0931cb7 Mon Sep 17 00:00:00 2001 From: lifeinwild <49356704+lifeinwild@users.noreply.github.com> Date: Mon, 27 May 2019 05:09:54 +0900 Subject: [PATCH] Use UTF-8 in gradle builds --- common.gradle | 2 ++ jme3-bullet/build.gradle | 1 + jme3-desktop/build.gradle | 2 +- jme3-examples/build.gradle | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/common.gradle b/common.gradle index f0c716d70..80b22904d 100644 --- a/common.gradle +++ b/common.gradle @@ -43,6 +43,8 @@ javadoc { options.header = "jMonkeyEngine ${jmeMainVersion} ${project.name}" options.author = "true" options.use = "true" + options.charSet = "UTF-8" + options.encoding = "UTF-8" //disable doclint for JDK8, more quiet output if (JavaVersion.current().isJava8Compatible()){ options.addStringOption('Xdoclint:none', '-quiet') diff --git a/jme3-bullet/build.gradle b/jme3-bullet/build.gradle index daa82d8dc..404e6cb00 100644 --- a/jme3-bullet/build.gradle +++ b/jme3-bullet/build.gradle @@ -33,6 +33,7 @@ task generateNativeHeaders(type: Exec, dependsOn: classes) { args "-h", nativeIncludes args "@$projectDir/java_classes.jtxt" args '-d', classBuildDir + args "-encoding", "UTF-8" } assemble.dependsOn(generateNativeHeaders) \ No newline at end of file diff --git a/jme3-desktop/build.gradle b/jme3-desktop/build.gradle index 0a77d7d72..60d0a831d 100644 --- a/jme3-desktop/build.gradle +++ b/jme3-desktop/build.gradle @@ -4,4 +4,4 @@ if (!hasProperty('mainClass')) { dependencies { compile project(':jme3-core') -} +} \ No newline at end of file diff --git a/jme3-examples/build.gradle b/jme3-examples/build.gradle index cd98abaa9..08e2a8dad 100644 --- a/jme3-examples/build.gradle +++ b/jme3-examples/build.gradle @@ -126,4 +126,4 @@ task dist (dependsOn: ['build', ':jme3-jogl:jar', ':jme3-bullet:jar', ':jme3-and rename {project(':jme3-bullet-native-android').name+".jar"} } } -} +} \ No newline at end of file