Skip to content

Commit

Permalink
Treat all source files as UTF-8 for java, javadoc. (#5946)
Browse files Browse the repository at this point in the history
* Specify UTF-8 in build.gradle as the character encoding for java files.
  • Loading branch information
cmnbroad authored and lbergelson committed May 17, 2019
1 parent c773a9c commit 1d2a561
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -168,6 +168,7 @@ configurations.all {

tasks.withType(JavaCompile) {
options.compilerArgs = ['-proc:none', '-Xlint:all', '-Werror', '-Xdiags:verbose']
options.encoding = 'UTF-8'
}

sourceSets {
@@ -580,6 +581,7 @@ task testUtilsJar(type: Jar){
tasks.withType(Javadoc) {
// do this for all javadoc tasks, including gatkDoc
options.addStringOption('Xdoclint:none')
options.addStringOption('encoding', 'UTF-8')
}

javadoc {

0 comments on commit 1d2a561

Please sign in to comment.