Skip to content

Commit

Permalink
set the same flags for all gradle JavaCompile tasks (broadinstitute#5256
Browse files Browse the repository at this point in the history
)

* simplifying a few line in build.gradle and making all JavaCompile tasks apply the same compiler arguments
* previously this didn't apply to compileJavaTestUtils
  • Loading branch information
lbergelson authored and EdwardDixon committed Nov 9, 2018
1 parent 545a333 commit 6fca94f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,9 @@ configurations.all {
all*.exclude group: 'junit', module: 'junit'
}

//NOTE: we ignore contracts for now
compileJava {
tasks.withType(JavaCompile) {
options.compilerArgs = ['-proc:none', '-Xlint:all', '-Werror', '-Xdiags:verbose']
}
compileTestJava {
options.compilerArgs = ['-proc:none', '-Xlint:all', '-Werror', '-Xdiags:verbose']
}


sourceSets {
testUtils
Expand Down

0 comments on commit 6fca94f

Please sign in to comment.