From 2ee9843bc6cac8f190a5a8e5f9d6cb2f3b59e167 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Mon, 18 Dec 2023 12:02:05 +0800 Subject: [PATCH] build: fixes animal-sniffer phase and runs on all JDKs Signed-off-by: Adrian Cole --- activemq-client/pom.xml | 5 ++--- amqp-client/pom.xml | 4 +++- .../java/zipkin2/reporter/amqp/RabbitMQSenderBenchmarks.java | 3 +-- brave/pom.xml | 4 +++- core/pom.xml | 4 +++- kafka/pom.xml | 4 +++- libthrift/pom.xml | 4 +++- okhttp3/pom.xml | 4 +++- pom.xml | 2 ++ spring-beans/pom.xml | 4 +++- urlconnection/pom.xml | 4 +++- 11 files changed, 29 insertions(+), 13 deletions(-) diff --git a/activemq-client/pom.xml b/activemq-client/pom.xml index 963d32f8..b822e02c 100644 --- a/activemq-client/pom.xml +++ b/activemq-client/pom.xml @@ -37,8 +37,8 @@ - 1.8 - java18 + + java16 @@ -68,7 +68,6 @@ 1.6 - java16 diff --git a/amqp-client/pom.xml b/amqp-client/pom.xml index 9eb9c1e0..94eeff48 100644 --- a/amqp-client/pom.xml +++ b/amqp-client/pom.xml @@ -34,6 +34,9 @@ 5.20.0 4.12.0 + + + java16 @@ -95,7 +98,6 @@ 1.6 - java16 diff --git a/benchmarks/src/main/java/zipkin2/reporter/amqp/RabbitMQSenderBenchmarks.java b/benchmarks/src/main/java/zipkin2/reporter/amqp/RabbitMQSenderBenchmarks.java index fdf64f33..65633d15 100644 --- a/benchmarks/src/main/java/zipkin2/reporter/amqp/RabbitMQSenderBenchmarks.java +++ b/benchmarks/src/main/java/zipkin2/reporter/amqp/RabbitMQSenderBenchmarks.java @@ -16,7 +16,6 @@ import com.rabbitmq.client.Channel; import com.rabbitmq.client.DefaultConsumer; import java.io.IOException; -import org.junit.AssumptionViolatedException; import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.RunnerException; import org.openjdk.jmh.runner.options.Options; @@ -35,7 +34,7 @@ public class RabbitMQSenderBenchmarks extends SenderBenchmarks { CheckResult check = result.check(); if (!check.ok()) { - throw new AssumptionViolatedException(check.error().getMessage(), check.error()); + throw new IllegalStateException(check.error().getMessage(), check.error()); } channel = result.localChannel(); diff --git a/brave/pom.xml b/brave/pom.xml index bebac867..5a0c15ff 100644 --- a/brave/pom.xml +++ b/brave/pom.xml @@ -31,6 +31,9 @@ zipkin2.reporter.brave ${project.basedir}/.. + + + java16 @@ -73,7 +76,6 @@ 1.6 - java16 diff --git a/core/pom.xml b/core/pom.xml index e7533951..c26b9377 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -31,6 +31,9 @@ zipkin2.reporter ${project.basedir}/.. + + + java16 @@ -47,7 +50,6 @@ 1.6 - java16 diff --git a/kafka/pom.xml b/kafka/pom.xml index 8bbb4966..1aca2878 100644 --- a/kafka/pom.xml +++ b/kafka/pom.xml @@ -31,6 +31,9 @@ zipkin2.reporter.kafka ${project.basedir}/.. + + + java17 @@ -61,7 +64,6 @@ 1.7 - java17 diff --git a/libthrift/pom.xml b/libthrift/pom.xml index c53acdb6..28367c68 100644 --- a/libthrift/pom.xml +++ b/libthrift/pom.xml @@ -31,6 +31,9 @@ zipkin2.reporter.libthrift ${project.basedir}/.. + + + java16 @@ -72,7 +75,6 @@ 1.6 - java16 diff --git a/okhttp3/pom.xml b/okhttp3/pom.xml index d80ed115..4e7d134e 100644 --- a/okhttp3/pom.xml +++ b/okhttp3/pom.xml @@ -33,6 +33,9 @@ ${project.basedir}/.. 3.11.0 + + + java17 @@ -102,7 +105,6 @@ 1.7 - java17 diff --git a/pom.xml b/pom.xml index 8f651194..e8409b6d 100755 --- a/pom.xml +++ b/pom.xml @@ -396,6 +396,8 @@ + animal-sniffer + verify check diff --git a/spring-beans/pom.xml b/spring-beans/pom.xml index f669e1ce..5f297105 100644 --- a/spring-beans/pom.xml +++ b/spring-beans/pom.xml @@ -31,6 +31,9 @@ zipkin2.reporter.beans ${project.basedir}/.. + + + java16 @@ -120,7 +123,6 @@ 1.6 - java16 diff --git a/urlconnection/pom.xml b/urlconnection/pom.xml index 7b41dfa2..3ad7142f 100644 --- a/urlconnection/pom.xml +++ b/urlconnection/pom.xml @@ -31,6 +31,9 @@ zipkin2.reporter.urlconnection ${project.basedir}/.. + + + java16 @@ -54,7 +57,6 @@ 1.6 - java16