Skip to content

Commit

Permalink
Error on any unsupressed removal warning messages
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <petern@amazon.com>
  • Loading branch information
peternied committed May 10, 2022
1 parent 05d1556 commit 05321e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,12 @@ tasks.withType(Checkstyle) {
}
}

tasks.withType(JavaCompile) {
configure(options) {
options.compilerArgs << '-Xlint:removal' << '-Werror'
}
}

spotless {
java {
// note: you can use an empty string for all the imports you didn't specify explicitly, and '\\#` prefix for static imports
Expand Down

0 comments on commit 05321e8

Please sign in to comment.