diff --git a/.baseline/checkstyle/checkstyle.xml b/.baseline/checkstyle/checkstyle.xml
index 268ebe3fc..43ec38a3a 100644
--- a/.baseline/checkstyle/checkstyle.xml
+++ b/.baseline/checkstyle/checkstyle.xml
@@ -84,11 +84,13 @@
+ org.apache.commons.lang3.Validate.*,
+ org.assertj.core.api.Assertions.*,
+ org.mockito.Mockito.*"/>
@@ -469,7 +471,7 @@
-
+
diff --git a/.baseline/spotless/eclipse.xml b/.baseline/spotless/eclipse.xml
index cff10b095..fe1fc71ea 100644
--- a/.baseline/spotless/eclipse.xml
+++ b/.baseline/spotless/eclipse.xml
@@ -92,6 +92,7 @@
+
@@ -177,7 +178,7 @@
-
+
diff --git a/build.gradle b/build.gradle
index ed681692e..1f95ef668 100644
--- a/build.gradle
+++ b/build.gradle
@@ -28,7 +28,7 @@ buildscript {
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.netflix.nebula:nebula-publishing-plugin:14.0.0'
- classpath 'com.palantir.baseline:gradle-baseline-java:2.3.0'
+ classpath 'com.palantir.baseline:gradle-baseline-java:2.17.0'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.12.2'
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:1.12.4'
classpath 'gradle.plugin.org.inferred:gradle-processors:3.1.0'
diff --git a/gradle-conjure/src/main/java/com/palantir/gradle/conjure/CompileConjurePythonTask.java b/gradle-conjure/src/main/java/com/palantir/gradle/conjure/CompileConjurePythonTask.java
index e492cfeb1..ae6218f03 100644
--- a/gradle-conjure/src/main/java/com/palantir/gradle/conjure/CompileConjurePythonTask.java
+++ b/gradle-conjure/src/main/java/com/palantir/gradle/conjure/CompileConjurePythonTask.java
@@ -31,7 +31,7 @@
public class CompileConjurePythonTask extends ConjureGeneratorTask {
@Override
- protected final Map> requiredOptions(File file) {
+ protected final Map> requiredOptions(File _file) {
return ImmutableMap.of(
"packageName",
this::getProjectName,
diff --git a/gradle-conjure/src/main/java/com/palantir/gradle/conjure/CompileConjureTypeScriptTask.java b/gradle-conjure/src/main/java/com/palantir/gradle/conjure/CompileConjureTypeScriptTask.java
index ba4be8f35..04c03f60a 100644
--- a/gradle-conjure/src/main/java/com/palantir/gradle/conjure/CompileConjureTypeScriptTask.java
+++ b/gradle-conjure/src/main/java/com/palantir/gradle/conjure/CompileConjureTypeScriptTask.java
@@ -57,7 +57,7 @@ public void execute(Task task) {
}
@Override
- protected final Map> requiredOptions(File file) {
+ protected final Map> requiredOptions(File _file) {
return ImmutableMap.of(
"packageName",
this::getPackageName,
diff --git a/gradle-conjure/src/main/java/com/palantir/gradle/conjure/ConjureGeneratorTask.java b/gradle-conjure/src/main/java/com/palantir/gradle/conjure/ConjureGeneratorTask.java
index fde596f58..dd3445a7b 100644
--- a/gradle-conjure/src/main/java/com/palantir/gradle/conjure/ConjureGeneratorTask.java
+++ b/gradle-conjure/src/main/java/com/palantir/gradle/conjure/ConjureGeneratorTask.java
@@ -45,7 +45,7 @@ public ConjureGeneratorTask() {
// main task. Intentionally not using a lambda because this breaks Gradle caching
doLast(new Action() {
@Override
- public void execute(Task task) {
+ public void execute(Task _task) {
compileFiles();
}
});
@@ -83,7 +83,7 @@ public final GeneratorOptions getOptions() {
* Where to put the output for the given input source file.
* This should return a directory that's under {@link #getOutputDirectory()}.
*/
- protected File outputDirectoryFor(File file) {
+ protected File outputDirectoryFor(File _file) {
return getOutputDirectory();
}
@@ -116,7 +116,7 @@ public void compileFiles() {
* What options are required, along with suppliers for obtaining their default values if they were not defined in
* the {@link #getOptions() options}.
*/
- protected Map> requiredOptions(File file) {
+ protected Map> requiredOptions(File _file) {
return ImmutableMap.of();
}
}
diff --git a/gradle-conjure/src/main/java/com/palantir/gradle/conjure/ConjurePlugin.java b/gradle-conjure/src/main/java/com/palantir/gradle/conjure/ConjurePlugin.java
index ba4867250..8e8acee63 100644
--- a/gradle-conjure/src/main/java/com/palantir/gradle/conjure/ConjurePlugin.java
+++ b/gradle-conjure/src/main/java/com/palantir/gradle/conjure/ConjurePlugin.java
@@ -693,7 +693,7 @@ private static Copy getConjureSources(Project project) {
// (see https://github.com/gradle/gradle/issues/5510)
copyConjureSourcesTask.doFirst(new Action() {
@Override
- public void execute(Task task) {
+ public void execute(Task _task) {
GFileUtils.deleteDirectory(buildDir);
}
});
diff --git a/gradle-conjure/src/main/java/com/palantir/gradle/conjure/ExtractExecutableTask.java b/gradle-conjure/src/main/java/com/palantir/gradle/conjure/ExtractExecutableTask.java
index 57880640a..c463cb728 100644
--- a/gradle-conjure/src/main/java/com/palantir/gradle/conjure/ExtractExecutableTask.java
+++ b/gradle-conjure/src/main/java/com/palantir/gradle/conjure/ExtractExecutableTask.java
@@ -56,7 +56,7 @@ public ExtractExecutableTask() {
doFirst(new Action() {
@Override
- public void execute(Task task) {
+ public void execute(Task _task) {
Set rootDirectories = new HashSet<>();
getProject().tarTree(tarFile.get()).visit(new FileVisitor() {
@Override
@@ -71,7 +71,7 @@ public void visitDir(FileVisitDetails dirDetails) {
}
@Override
- public void visitFile(FileVisitDetails fileDetails) {}
+ public void visitFile(FileVisitDetails _fileDetails) {}
});
if (rootDirectories.size() != 1) {
throw new GradleException(String.format(
@@ -84,7 +84,7 @@ public void visitFile(FileVisitDetails fileDetails) {}
doLast(new Action() {
@Override
- public void execute(Task task) {
+ public void execute(Task _task) {
getLogger().info("Extracted into {}", getOutputDirectory());
// Ensure the executable exists
Preconditions.checkState(