diff --git a/.baseline/checkstyle/checkstyle.xml b/.baseline/checkstyle/checkstyle.xml
index 0297c79f..fd1fa389 100644
--- a/.baseline/checkstyle/checkstyle.xml
+++ b/.baseline/checkstyle/checkstyle.xml
@@ -43,7 +43,7 @@
-
+
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 23c932d5..17ead194 100644
--- a/build.gradle
+++ b/build.gradle
@@ -11,7 +11,7 @@ buildscript {
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.28.0'
classpath 'com.gradle.publish:plugin-publish-plugin:1.1.0'
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.12.0'
- classpath 'com.palantir.baseline:gradle-baseline-java:4.178.0'
+ classpath 'com.palantir.baseline:gradle-baseline-java:4.184.0'
classpath 'com.palantir.gradle.conjure:gradle-conjure:5.33.0'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.15.0'
classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
diff --git a/gradle-metric-schema/src/main/java/com/palantir/metric/schema/gradle/CreateMetricsManifestTask.java b/gradle-metric-schema/src/main/java/com/palantir/metric/schema/gradle/CreateMetricsManifestTask.java
index d548ce41..6224bc6b 100644
--- a/gradle-metric-schema/src/main/java/com/palantir/metric/schema/gradle/CreateMetricsManifestTask.java
+++ b/gradle-metric-schema/src/main/java/com/palantir/metric/schema/gradle/CreateMetricsManifestTask.java
@@ -137,7 +137,7 @@ public final void createManifest() throws IOException {
ImmutableMap.builder()
.putAll(getLocalMetrics())
.putAll(getDiscoveredMetrics())
- .build());
+ .buildOrThrow());
}
private Map> getLocalMetrics() {
@@ -167,7 +167,7 @@ private Map> getDiscoveredMetrics() {
}
});
- return discoveredMetrics.build();
+ return discoveredMetrics.buildOrThrow();
}
private static Optional> inferProjectDependencyMetrics(Project dependencyProject) {