From 030cac95540ee89332c4c0e01f5a3c07c8e8b9d3 Mon Sep 17 00:00:00 2001 From: svc-excavator-bot Date: Thu, 20 Oct 2022 16:50:37 +0000 Subject: [PATCH] Excavator: Upgrades Baseline to the latest version --- .baseline/checkstyle/checkstyle.xml | 2 +- build.gradle | 2 +- .../metric/schema/gradle/CreateMetricsManifestTask.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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/build.gradle b/build.gradle index 98df5171..4f717539 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ buildscript { classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.27.0' classpath 'com.gradle.publish:plugin-publish-plugin:1.0.0' classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:2.11.0' - classpath 'com.palantir.baseline:gradle-baseline-java:4.178.0' + classpath 'com.palantir.baseline:gradle-baseline-java:4.182.0' classpath 'com.palantir.gradle.conjure:gradle-conjure:5.31.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) {