diff --git a/.baseline/checkstyle/checkstyle.xml b/.baseline/checkstyle/checkstyle.xml
index 2f1bfe813..7fb150420 100644
--- a/.baseline/checkstyle/checkstyle.xml
+++ b/.baseline/checkstyle/checkstyle.xml
@@ -47,6 +47,10 @@
+
+
+
+
@@ -193,10 +197,6 @@
-
-
-
-
@@ -361,6 +361,7 @@
+
@@ -368,11 +369,11 @@
-
+
-
+
@@ -425,11 +426,8 @@
-
-
-
diff --git a/.baseline/idea/intellij-java-palantir-style.xml b/.baseline/idea/intellij-java-palantir-style.xml
index 7051dbd57..945d8bad0 100644
--- a/.baseline/idea/intellij-java-palantir-style.xml
+++ b/.baseline/idea/intellij-java-palantir-style.xml
@@ -30,6 +30,7 @@
+
diff --git a/build.gradle b/build.gradle
index 815a7f2be..06764531f 100644
--- a/build.gradle
+++ b/build.gradle
@@ -11,7 +11,7 @@ buildscript {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5'
classpath 'com.netflix.nebula:nebula-publishing-plugin:17.3.2'
classpath 'com.netflix.nebula:gradle-info-plugin:9.1.1'
- classpath 'com.palantir.baseline:gradle-baseline-java:3.11.0'
+ classpath 'com.palantir.baseline:gradle-baseline-java:3.50.0'
classpath 'gradle.plugin.org.inferred:gradle-processors:3.3.0'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.12.3'
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:1.27.0'
@@ -53,10 +53,7 @@ subprojects {
}
tasks.withType(JavaCompile) {
- options.errorprone.errorproneArgs += ['-Xep:PreconditionsConstantMessage:OFF',
- '-Xep:PreferSafeLoggableExceptions:OFF',
- '-Xep:PreferSafeLoggingPreconditions:OFF',
- '-Xep:SwitchStatementDefaultCase:OFF']
+ options.errorprone.disable 'PreconditionsConstantMessage', 'PreferSafeLoggableExceptions', 'PreferSafeLoggingPreconditions', 'SwitchStatementDefaultCase'
}
// Run `./gradlew test -Drecreate=true` to recreate all the expected
diff --git a/idea-plugin/build.gradle b/idea-plugin/build.gradle
index a22eec880..36a1303f7 100644
--- a/idea-plugin/build.gradle
+++ b/idea-plugin/build.gradle
@@ -58,7 +58,7 @@ dependencies {
}
tasks.withType(JavaCompile).configureEach {
- options.errorprone.errorproneArgs += ['-Xep:StrictUnusedVariable:OFF']
+ options.errorprone.disable 'StrictUnusedVariable'
}
check.dependsOn buildPlugin, verifyPlugin
diff --git a/palantir-java-format/build.gradle b/palantir-java-format/build.gradle
index befffb4bf..545ad019c 100644
--- a/palantir-java-format/build.gradle
+++ b/palantir-java-format/build.gradle
@@ -31,7 +31,7 @@ dependencies {
}
tasks.withType(JavaCompile).configureEach {
- options.errorprone.errorproneArgs += ['-Xep:StrictUnusedVariable:OFF']
+ options.errorprone.disable 'StrictUnusedVariable'
}
// false positives due to org.junit.runners.* in the test cases