Skip to content

Commit

Permalink
Merge pull request #703 from stripe/ob-java-12
Browse files Browse the repository at this point in the history
Start testing Java 12
  • Loading branch information
ob-stripe authored Jul 8, 2019
2 parents 789303f + 1b556f8 commit e1c46fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ matrix:
- jdk: openjdk9
- jdk: openjdk10
- jdk: openjdk11
- jdk: openjdk12
- jdk: openjdk-ea
allow_failures:
- jdk: openjdk-ea
Expand Down
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ version = VERSION_NAME
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:all" << "-Xlint:-options" << "-Xlint:-processing"
options.encoding = 'UTF-8'

options.errorprone {
// This check is broken in Java 12. See https://github.com/google/error-prone/issues/1257
if ((JavaVersion.current().majorVersion as Integer) > 11) {
check('Finally', net.ltgt.gradle.errorprone.CheckSeverity.OFF)
}
}
}

compileJava {
Expand Down

0 comments on commit e1c46fb

Please sign in to comment.