Skip to content

Commit

Permalink
Require Java 9 to run error-prone
Browse files Browse the repository at this point in the history
Currently, it doesn't run on Java 10. See
google/error-prone#860
  • Loading branch information
jbduncan committed Feb 25, 2018
1 parent 1e0b350 commit 678b7d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ buildscript {
dependencies {
classpath('com.diffplug.spotless:spotless-plugin-gradle:3.8.0')
classpath('com.github.ben-manes:gradle-versions-plugin:0.17.0')
classpath('net.ltgt.gradle:gradle-errorprone-plugin:0.0.13')
if (JavaVersion.current().equals(JavaVersion.VERSION_1_9)) {
classpath('net.ltgt.gradle:gradle-errorprone-plugin:0.0.13')
}
classpath('org.ajoberstar:gradle-git-publish:0.3.2')
classpath('org.ajoberstar:gradle-git:1.7.2')
classpath('org.junit.platform:junit-platform-gradle-plugin:1.0.1')
Expand Down Expand Up @@ -550,7 +552,7 @@ subprojects { subproj ->

}

if (subproj.name != 'documentation') {
if (JavaVersion.current().equals(JavaVersion.VERSION_1_9) && subproj.name != 'documentation') {
apply plugin: 'net.ltgt.errorprone-base'

dependencies {
Expand Down

0 comments on commit 678b7d7

Please sign in to comment.