Browse Source

have compilation and javadoc use UTF8 encoding

kimchy 14 years ago
parent
commit
9ff8006d37
2 changed files with 10 additions and 4 deletions
  1. 10 0
      build.gradle
  2. 0 4
      modules/elasticsearch/build.gradle

+ 10 - 0
build.gradle

@@ -40,6 +40,16 @@ allprojects {
     plugins.withType(JavaPlugin).whenPluginAdded {
         sourceCompatibility = 1.6
         targetCompatibility = 1.6
+        compileJava {
+            sourceCompatibility = 1.6
+            targetCompatibility = 1.6
+            options.encoding = "UTF8"
+        }
+        javadoc {
+            maxMemory = "1g"
+            options.encoding = "UTF8"
+        }
+
 
         test {
             useTestNG()

+ 0 - 4
modules/elasticsearch/build.gradle

@@ -74,10 +74,6 @@ jar << {
     }
 }
 
-javadoc {
-    maxMemory = "1g"
-}
-
 task sourcesJar(type: Jar, dependsOn: classes) {
     classifier = 'sources'
     from sourceSets.main.allSource