Skip to content

Commit e16e771

Browse files
Update dependency com.google.protobuf:protobuf-java to v4.32.0 (#1513)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [com.google.protobuf:protobuf-java](https://developers.google.com/protocol-buffers/) ([source](https://redirect.github.com/protocolbuffers/protobuf)) | `4.31.1` -> `4.32.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/com.google.protobuf:protobuf-java/4.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.google.protobuf:protobuf-java/4.31.1/4.32.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/prometheus/client_java). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS43MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuNzEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> --------- Signed-off-by: Gregor Zeitlinger <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Gregor Zeitlinger <[email protected]>
1 parent 3aae6f4 commit e16e771

File tree

12 files changed

+936
-932
lines changed

12 files changed

+936
-932
lines changed

integration-tests/it-common/src/test/java/io/prometheus/client/it/common/ExporterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import static org.assertj.core.api.Assertions.assertThat;
55
import static org.assertj.core.api.Assertions.fail;
66

7-
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_31_1.Metrics;
7+
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_32_0.Metrics;
88
import java.io.ByteArrayInputStream;
99
import java.io.IOException;
1010
import java.io.InputStream;

integration-tests/it-exporter/it-exporter-test/src/test/java/io/prometheus/metrics/it/exporter/test/ExporterIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import com.google.common.io.Resources;
77
import io.prometheus.client.it.common.ExporterTest;
8-
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_31_1.Metrics;
8+
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_32_0.Metrics;
99
import java.io.IOException;
1010
import java.net.URISyntaxException;
1111
import java.net.URLEncoder;

integration-tests/it-spring-boot-smoke-test/src/test/java/io/prometheus/metrics/it/springboot/ApplicationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import static org.assertj.core.api.Assertions.assertThat;
44

55
import io.prometheus.client.it.common.ExporterTest;
6-
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_31_1.Metrics;
6+
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_32_0.Metrics;
77
import java.io.IOException;
88
import java.net.URL;
99
import java.util.List;

mise.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"go:github.com/grafana/oats" = "0.4.0"
55
java = "temurin-21.0.8+9.0.LTS"
66
lychee = "0.19.1"
7-
protoc = "31.1"
7+
protoc = "32.0"
88

99
[tasks.ci]
1010
description = "CI Build"
@@ -16,6 +16,10 @@ env.PROTO_GENERATION = "true"
1616
description = "format source code"
1717
run = "./mvnw spotless:apply"
1818

19+
[tasks.clean]
20+
description = "clean all modules"
21+
run = "./mvnw clean"
22+
1923
[tasks.compile]
2024
description = "bare compile, ignoring formatting and linters"
2125
run = "./mvnw install -DskipTests -Dspotless.check.skip=true -Dcoverage.skip=true -Dcheckstyle.skip=true -Dwarnings=-nowarn"
@@ -35,7 +39,7 @@ run = "./mvnw verify"
3539

3640
[tasks.build]
3741
description = "build all modules wihthout tests"
38-
run = "./mvnw install -DskipTests"
42+
run = "./mvnw install -DskipTests -Dcoverage.skip=true"
3943

4044
[tasks.lint]
4145
run = "scripts/super-linter.sh"

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<properties>
2424
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2525
<automatic.module.name>--module-name-need-to-be-overridden--</automatic.module.name>
26-
<protobuf-java.version>4.31.1</protobuf-java.version>
26+
<protobuf-java.version>4.32.0</protobuf-java.version>
2727
<guava.version>33.4.8-jre</guava.version>
2828
<junit-jupiter.version>5.13.4</junit-jupiter.version>
2929
<otel.instrumentation.version>2.16.0-alpha</otel.instrumentation.version>

prometheus-metrics-core/src/test/java/io/prometheus/metrics/core/metrics/CounterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import io.prometheus.metrics.config.MetricsProperties;
99
import io.prometheus.metrics.config.PrometheusProperties;
1010
import io.prometheus.metrics.core.exemplars.ExemplarSamplerConfigTestUtil;
11-
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_31_1.Metrics;
11+
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_32_0.Metrics;
1212
import io.prometheus.metrics.expositionformats.internal.PrometheusProtobufWriterImpl;
1313
import io.prometheus.metrics.expositionformats.internal.ProtobufUtil;
1414
import io.prometheus.metrics.model.snapshots.CounterSnapshot;

prometheus-metrics-core/src/test/java/io/prometheus/metrics/core/metrics/HistogramTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import io.prometheus.metrics.core.datapoints.DistributionDataPoint;
1111
import io.prometheus.metrics.core.exemplars.ExemplarSamplerConfigTestUtil;
1212
import io.prometheus.metrics.expositionformats.OpenMetricsTextFormatWriter;
13-
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_31_1.Metrics;
13+
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_32_0.Metrics;
1414
import io.prometheus.metrics.expositionformats.internal.PrometheusProtobufWriterImpl;
1515
import io.prometheus.metrics.expositionformats.internal.ProtobufUtil;
1616
import io.prometheus.metrics.model.snapshots.ClassicHistogramBucket;

prometheus-metrics-core/src/test/java/io/prometheus/metrics/core/metrics/InfoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
55

66
import io.prometheus.metrics.expositionformats.OpenMetricsTextFormatWriter;
7-
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_31_1.Metrics;
7+
import io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_32_0.Metrics;
88
import io.prometheus.metrics.expositionformats.internal.PrometheusProtobufWriterImpl;
99
import io.prometheus.metrics.expositionformats.internal.ProtobufUtil;
1010
import io.prometheus.metrics.model.snapshots.Labels;

prometheus-metrics-exposition-formats/generate-protobuf.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ GENERATED_WITH=$(grep -oP '\/\/ Protobuf Java Version: \K.*' "$TARGET_DIR/${PACK
3838
if [[ $GENERATED_WITH != "$PROTOBUF_VERSION" ]]; then
3939
echo "Generated protobuf sources version $GENERATED_WITH does not match provided version $PROTOBUF_VERSION"
4040
echo "Please use https://mise.jdx.dev/ - this will use the version specified in mise.toml"
41-
echo "Generated protobuf sources are not up-to-date. Please run 'mise up && mise run generater' and commit the changes."
41+
echo "Generated protobuf sources are not up-to-date. Please run 'mise self-update && mise up && mise run generate' and commit the changes."
4242
exit 1
4343
fi
4444

4545
STATUS=$(git status --porcelain)
4646
if [[ ${REQUIRE_PROTO_UP_TO_DATE:-false} == "true" && -n "$STATUS" ]]; then
4747
echo "Please use https://mise.jdx.dev/ - this will use the version specified in mise.toml"
48-
echo "Generated protobuf sources are not up-to-date. Please run 'mise run generate' and commit the changes."
48+
echo "Generated protobuf sources are not up-to-date. Please run 'mise self-update && mise up && mise run generate' and commit the changes."
4949
echo "Local changes:"
5050
echo "$STATUS"
5151
exit 1

0 commit comments

Comments
 (0)