[MINOR] Only Test errorprone-checks on JDK8 (#89)

* [MINOR] Only Test errorprone-checks on JDK8

The current version of errorprone causes errors when compiled with Java
11. The next version causes causes problems with Java 8.  So for now
keep the old version and only test when compiled with Java 8 (which
is the current Jenkins version). When the test is skipped an info log is sent.
Danno Ferrin 6 years ago committed by GitHub
parent 0d77c515b5
commit 5352f09e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      errorprone-checks/build.gradle

@ -30,8 +30,13 @@ dependencies {
} }
test { test {
if (JavaVersion.current().isJava8()) { if (!JavaVersion.current().isJava8()) {
jvmArgs "-Xbootclasspath/p:${configurations.epJavac.asPath}" enabled = false
logger.info("Disabling {} because errorprone tests always fail in Java {}",
project.name, JavaVersion.current().majorVersion)
} }
jvmArgs "-Xbootclasspath/p:${configurations.epJavac.asPath}"
testLogging { showStandardStreams = true } testLogging { showStandardStreams = true }
} }

Loading…
Cancel
Save