diff --git a/gradle/compile/java.gradle b/gradle/compile/java.gradle index b011802..55ccc91 100644 --- a/gradle/compile/java.gradle +++ b/gradle/compile/java.gradle @@ -21,14 +21,6 @@ jar { duplicatesStrategy = DuplicatesStrategy.INCLUDE } -tasks.withType(JavaCompile) { - options.compilerArgs.add('-Xlint:all,-exports') -} - -javadoc { - options.addStringOption('Xdoclint:none', '-quiet') -} - task sourcesJar(type: Jar, dependsOn: classes) { classifier 'sources' from sourceSets.main.allSource @@ -42,3 +34,13 @@ task javadocJar(type: Jar, dependsOn: javadoc) { artifacts { archives sourcesJar, javadocJar } + +tasks.withType(JavaCompile) { + options.compilerArgs.add('-Xlint:all') + options.encoding = 'UTF-8' +} + +tasks.withType(Javadoc) { + options.addStringOption('Xdoclint:none', '-quiet') + options.encoding = 'UTF-8' +}