diff --git a/.baseline/checkstyle/checkstyle.xml b/.baseline/checkstyle/checkstyle.xml
index 1a086c49..fd1fa389 100644
--- a/.baseline/checkstyle/checkstyle.xml
+++ b/.baseline/checkstyle/checkstyle.xml
@@ -43,7 +43,7 @@
-
+
@@ -402,7 +402,9 @@
-
+
+
+
diff --git a/.baseline/idea/intellij-java-palantir-style.xml b/.baseline/idea/intellij-java-palantir-style.xml
index f41e2b8a..6a5f83a6 100644
--- a/.baseline/idea/intellij-java-palantir-style.xml
+++ b/.baseline/idea/intellij-java-palantir-style.xml
@@ -44,8 +44,10 @@
+
+
@@ -54,6 +56,7 @@
+
diff --git a/build.gradle b/build.gradle
index d5d834a6..0d8be493 100644
--- a/build.gradle
+++ b/build.gradle
@@ -26,7 +26,7 @@ buildscript {
classpath 'com.palantir.gradle.jdkslatest:gradle-jdks-latest:0.11.0'
classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.38.0'
- classpath 'com.palantir.baseline:gradle-baseline-java:4.59.0'
+ classpath 'com.palantir.baseline:gradle-baseline-java:5.21.0'
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.15.0'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:3.0.0'
classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
diff --git a/conjure-postman-core/src/main/java/com/palantir/conjure/postman/api/PostmanAuth.java b/conjure-postman-core/src/main/java/com/palantir/conjure/postman/api/PostmanAuth.java
index dc211070..512f0471 100644
--- a/conjure-postman-core/src/main/java/com/palantir/conjure/postman/api/PostmanAuth.java
+++ b/conjure-postman-core/src/main/java/com/palantir/conjure/postman/api/PostmanAuth.java
@@ -46,7 +46,7 @@ default Optional>> bearer() {
.put("key", "token")
.put("value", AUTH_VARIABLE)
.put("type", "string")
- .build()));
+ .buildOrThrow()));
}
static Builder builder() {
diff --git a/versions.props b/versions.props
index 45fba579..8aed093f 100644
--- a/versions.props
+++ b/versions.props
@@ -19,6 +19,4 @@ org.assertj:* = 3.23.1
org.hamcrest:hamcrest-core = 2.2
org.immutables:* = 2.8.8
org.javassist:javassist = 3.22.0-GA
-org.mockito:mockito-core = 4.8.0
org.slf4j:* = 1.7.36
-org.objenesis:objenesis = 3.3