Skip to content

Commit

Permalink
Update errorprone config for Java 10 (#1265)
Browse files Browse the repository at this point in the history
  • Loading branch information
AustinShalit authored and PeterJohnson committed Aug 11, 2018
1 parent c2ceebf commit 44099d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
plugins {
id 'net.ltgt.errorprone' version '0.0.15'
id 'base'
id 'edu.wpi.first.wpilib.versioning.WPILibVersioningPlugin' version '2.1'
id 'edu.wpi.first.NativeUtils' version '1.7.1'
id 'edu.wpi.first.GradleJni' version '0.3.0'
id 'edu.wpi.first.GradleVsCode' version '0.4.1'
id 'idea'
id 'com.gradle.build-scan' version '1.15.1'
id 'net.ltgt.errorprone' version '0.0.15' apply false // For Java 8
id 'net.ltgt.errorprone-javacplugin' version '0.3' apply false // For Java 9+
}

repositories {
Expand Down
7 changes: 6 additions & 1 deletion shared/java/javacommon.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
apply plugin: 'maven-publish'
apply plugin: 'java'
apply plugin: 'net.ltgt.errorprone'

if (JavaVersion.current() == JavaVersion.VERSION_1_8) {
apply plugin: 'net.ltgt.errorprone'
} else {
apply plugin: 'net.ltgt.errorprone-javacplugin'
}

def pubVersion
if (project.hasProperty("publishVersion")) {
Expand Down

0 comments on commit 44099d9

Please sign in to comment.