From c7dddff0de9518f762bb51330eaac414cce6acb7 Mon Sep 17 00:00:00 2001 From: Crypt Keeper <64215+codefromthecrypt@users.noreply.github.com> Date: Sat, 6 Jan 2024 13:13:50 +0800 Subject: [PATCH] build: removes out-of-date animalsniffer and bumps deps (#3679) We removed animalsniffer from the build, but not all of it. This completes the job, and updates other build/test related deps as well. Signed-off-by: Adrian Cole --- benchmarks/pom.xml | 1 + .../test-images/zipkin-cassandra/Dockerfile | 6 ++-- docker/test-images/zipkin-kafka/Dockerfile | 6 ++-- docker/test-images/zipkin-rabbitmq/Dockerfile | 4 +-- pom.xml | 11 +++--- zipkin/pom.xml | 34 ------------------- .../java/zipkin2/internal/ReadBuffer.java | 5 +-- 7 files changed, 15 insertions(+), 52 deletions(-) diff --git a/benchmarks/pom.xml b/benchmarks/pom.xml index 3c954ef5f36..0e9d5226eac 100644 --- a/benchmarks/pom.xml +++ b/benchmarks/pom.xml @@ -220,6 +220,7 @@ javac 1.8 1.8 + 8 diff --git a/docker/test-images/zipkin-cassandra/Dockerfile b/docker/test-images/zipkin-cassandra/Dockerfile index f4dda9a8bb9..3692502a237 100644 --- a/docker/test-images/zipkin-cassandra/Dockerfile +++ b/docker/test-images/zipkin-cassandra/Dockerfile @@ -1,5 +1,5 @@ # -# Copyright 2015-2023 The OpenZipkin Authors +# Copyright 2015-2024 The OpenZipkin Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at @@ -34,7 +34,7 @@ FROM ghcr.io/openzipkin/java:${java_version} as install # Use latest stable version: https://cassandra.apache.org/download/ # This is defined in many places because Docker has no "env" script functionality unless you use # docker-compose: When updating, update everywhere. -ARG cassandra_version=4.0.11 +ARG cassandra_version=4.1.3 ENV CASSANDRA_VERSION=$cassandra_version WORKDIR /install @@ -44,7 +44,7 @@ RUN /tmp/install.sh && rm /tmp/install.sh FROM ghcr.io/openzipkin/java:${java_version}-jre as zipkin-cassandra LABEL org.opencontainers.image.description="Cassandra on OpenJDK and Alpine Linux with Zipkin keyspaces pre-installed" -ARG cassandra_version=4.0.11 +ARG cassandra_version=4.1.3 LABEL cassandra-version=$cassandra_version ENV CASSANDRA_VERSION=$cassandra_version diff --git a/docker/test-images/zipkin-kafka/Dockerfile b/docker/test-images/zipkin-kafka/Dockerfile index 4a0829aa684..a942b8849d6 100644 --- a/docker/test-images/zipkin-kafka/Dockerfile +++ b/docker/test-images/zipkin-kafka/Dockerfile @@ -1,5 +1,5 @@ # -# Copyright 2015-2023 The OpenZipkin Authors +# Copyright 2015-2024 The OpenZipkin Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at @@ -34,7 +34,7 @@ FROM ghcr.io/openzipkin/java:${java_version} as install # # This is defined in many places because Docker has no "env" script functionality unless you use # docker-compose: When updating, update everywhere. -ARG kafka_version=2.8.2 +ARG kafka_version=3.6.1 ENV KAFKA_VERSION=$kafka_version # Note: Scala 2.13+ supports JRE 14 ARG scala_version=2.13 @@ -47,7 +47,7 @@ RUN /tmp/install.sh && rm /tmp/install.sh # Share the same base image to reduce layers used in testing FROM ghcr.io/openzipkin/java:${java_version}-jre as zipkin-kafka LABEL org.opencontainers.image.description="Kafka and ZooKeeper on OpenJDK and Alpine Linux" -ARG kafka_version=2.8.2 +ARG kafka_version=3.6.1 LABEL kafka-version=$kafka_version # Add HEALTHCHECK and ENTRYPOINT scripts into the default search path diff --git a/docker/test-images/zipkin-rabbitmq/Dockerfile b/docker/test-images/zipkin-rabbitmq/Dockerfile index 7028e984038..ee34fd64bad 100644 --- a/docker/test-images/zipkin-rabbitmq/Dockerfile +++ b/docker/test-images/zipkin-rabbitmq/Dockerfile @@ -1,5 +1,5 @@ # -# Copyright 2015-2023 The OpenZipkin Authors +# Copyright 2015-2024 The OpenZipkin Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at @@ -13,7 +13,7 @@ # # Use latest from https://hub.docker.com/_/rabbitmq/tags?page=1&name=alpine -ARG rabbitmq_version=3.12.10 +ARG rabbitmq_version=3.12.11 # We copy files from the context into a scratch container first to avoid a problem where docker and # docker-compose don't share layer hashes https://github.com/docker/compose/issues/883 normally. diff --git a/pom.xml b/pom.xml index 676c2ec8f36..49800556091 100755 --- a/pom.xml +++ b/pom.xml @@ -48,7 +48,7 @@ - 2.24.0 + 2.24.1 1.0.0 @@ -85,7 +85,7 @@ 5.10.1 5.8.0 - 3.24.2 + 3.25.1 4.2.0 1.19.3 4.12.0 @@ -97,12 +97,11 @@ ${skipTests} - 1.23 1.2.8 4.3 5.1.9 - 3.11.0 + 3.12.1 3.6.1 3.1.1 @@ -110,12 +109,12 @@ 3.4.0 3.1.1 - 3.6.2 + 3.6.3 3.3.0 3.0.1 3.5.1 3.3.0 - 3.2.2 + 3.2.3 1.6.13 1.3 diff --git a/zipkin/pom.xml b/zipkin/pom.xml index 77d4ec8a25d..e8a2b4f03d0 100644 --- a/zipkin/pom.xml +++ b/zipkin/pom.xml @@ -41,14 +41,6 @@ - - org.jvnet - animal-sniffer-annotation - 1.0 - - provided - - com.google.code.gson @@ -61,32 +53,6 @@ - - - - org.codehaus.mojo - animal-sniffer-maven-plugin - ${animal-sniffer-maven-plugin.version} - - - org.codehaus.mojo.signature - java16 - 1.0 - - false - - - - animal-sniffer - verify - - check - - - - - de.qaware.maven go-offline-maven-plugin diff --git a/zipkin/src/main/java/zipkin2/internal/ReadBuffer.java b/zipkin/src/main/java/zipkin2/internal/ReadBuffer.java index 29e01aff77f..53fd38960e2 100644 --- a/zipkin/src/main/java/zipkin2/internal/ReadBuffer.java +++ b/zipkin/src/main/java/zipkin2/internal/ReadBuffer.java @@ -1,5 +1,5 @@ /* - * Copyright 2015-2023 The OpenZipkin Authors + * Copyright 2015-2024 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -16,7 +16,6 @@ import java.io.InputStream; import java.nio.ByteBuffer; import java.nio.ByteOrder; -import org.jvnet.animal_sniffer.IgnoreJRERequirement; import static zipkin2.internal.HexCodec.HEX_DIGITS; import static zipkin2.internal.JsonCodec.UTF_8; @@ -112,7 +111,6 @@ static abstract class Buff extends ReadBuffer { } // Encoding zipkin data is supported in JRE 6, but decoding isn't. - @IgnoreJRERequirement @Override boolean tryReadAscii(char[] destination, int length) { buf.mark(); // This is not Java 6 for (int i = 0; i < length; i++) { @@ -143,7 +141,6 @@ static abstract class Buff extends ReadBuffer { } // Encoding zipkin data is supported in JRE 6, but decoding isn't. - @IgnoreJRERequirement @Override public long skip(long maxCount) { int skipped = Math.max(available(), (int) maxCount); buf.position(buf.position() + skipped); // This is not Java 6