have compilation and javadoc use UTF8 encoding

This commit is contained in:
kimchy 2011-01-20 14:24:12 +02:00
parent 034a66263a
commit 9ff8006d37
2 changed files with 10 additions and 4 deletions

View File

@ -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()

View File

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