Skip to content

Commit

Permalink
Doing a version bump to 3.15 quarkus and friends
Browse files Browse the repository at this point in the history
However, stuck at okhttp, since the zipkin-report uses a different version (4.x) than the fabric8 k8s client (3.xx)

Signed-off-by: Matthias Wessendorf <[email protected]>
  • Loading branch information
matzew committed Jan 14, 2025
1 parent 0b4e723 commit 2b93906
Show file tree
Hide file tree
Showing 16 changed files with 189 additions and 180 deletions.
309 changes: 157 additions & 152 deletions data-plane/THIRD-PARTY.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import io.micrometer.core.instrument.binder.BaseUnits;
import io.micrometer.core.instrument.binder.kafka.KafkaClientMetrics;
import io.micrometer.core.instrument.search.Search;
import io.micrometer.prometheus.PrometheusConfig;
import io.micrometer.prometheus.PrometheusMeterRegistry;
import io.micrometer.prometheusmetrics.PrometheusConfig;
import io.micrometer.prometheusmetrics.PrometheusMeterRegistry;
import io.vertx.core.Future;
import io.vertx.core.Promise;
import io.vertx.core.http.HttpServerOptions;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class MetricsTest {

static {
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME));
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
import dev.knative.eventing.kafka.broker.dispatcher.main.FakeConsumerVerticleContext;
import io.cloudevents.CloudEvent;
import io.micrometer.core.instrument.search.MeterNotFoundException;
import io.micrometer.prometheus.PrometheusConfig;
import io.micrometer.prometheus.PrometheusMeterRegistry;
import io.micrometer.prometheusmetrics.PrometheusConfig;
import io.micrometer.prometheusmetrics.PrometheusMeterRegistry;
import io.vertx.core.Future;
import io.vertx.core.MultiMap;
import io.vertx.core.buffer.Buffer;
Expand Down Expand Up @@ -75,7 +75,7 @@ public class RecordDispatcherTest {
static {
BackendRegistries.setupBackend(new MicrometerMetricsOptions()
.setMicrometerRegistry(new PrometheusMeterRegistry(PrometheusConfig.DEFAULT))
.setRegistryName(Metrics.METRICS_REGISTRY_NAME));
.setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

private PrometheusMeterRegistry registry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
public class ResponseToKafkaTopicHandlerTest {

static {
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME));
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

private static final String TOPIC = "t1";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public abstract class AbstractConsumerVerticleTest {
private static final ConsumerVerticleContext resourceContext = FakeConsumerVerticleContext.get();

static {
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME));
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
import dev.knative.eventing.kafka.broker.dispatcher.main.FakeConsumerVerticleContext;
import io.cloudevents.core.builder.CloudEventBuilder;
import io.micrometer.core.instrument.Tags;
import io.micrometer.prometheus.PrometheusConfig;
import io.micrometer.prometheus.PrometheusMeterRegistry;
import io.micrometer.prometheusmetrics.PrometheusConfig;
import io.micrometer.prometheusmetrics.PrometheusMeterRegistry;
import io.vertx.core.Vertx;
import io.vertx.ext.web.client.WebClient;
import io.vertx.junit5.VertxExtension;
Expand Down Expand Up @@ -61,7 +61,7 @@ public class WebClientCloudEventSenderTest {
static {
BackendRegistries.setupBackend(new MicrometerMetricsOptions()
.setMicrometerRegistry(new PrometheusMeterRegistry(PrometheusConfig.DEFAULT))
.setRegistryName(Metrics.METRICS_REGISTRY_NAME));
.setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
public class UnorderedConsumerTest {

static {
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME));
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

private static final Logger logger = LoggerFactory.getLogger(UnorderedConsumerTest.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
public class ConsumerVerticleFactoryImplTest {

static {
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME));
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

@Test
Expand Down
14 changes: 9 additions & 5 deletions data-plane/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
<spotless.plugin.version>2.38.0</spotless.plugin.version>

<!-- dependencies version -->
<vertx.version>4.5.7</vertx.version>
<vertx.version>4.5.11</vertx.version>
<cloudevents.sdk.version>4.0.0</cloudevents.sdk.version>
<micrometer.version>1.12.5</micrometer.version>
<opentelemetry.version>1.32.0</opentelemetry.version>
<micrometer.version>1.13.5</micrometer.version>
<opentelemetry.version>1.39.0</opentelemetry.version>
<jackson.version>2.14.1</jackson.version>
<protobuf.version>3.25.2</protobuf.version>
<bucket4j.version>7.6.0</bucket4j.version>
Expand All @@ -56,11 +56,11 @@
<awaitility.version>4.2.0</awaitility.version>
<junit.jupiter.version>5.10.1</junit.jupiter.version>
<mokito.junit.jupiter.version>5.12.0</mokito.junit.jupiter.version>
<fabric8.kubernetes.version>6.10.0</fabric8.kubernetes.version>
<fabric8.kubernetes.version>6.13.4</fabric8.kubernetes.version>
<kafka.version>3.7.1</kafka.version>
<debezium.version>2.6.1.Final</debezium.version>
<jib.version>3.4.4</jib.version>
<quarkus.version>3.10.2</quarkus.version>
<quarkus.version>3.15.2</quarkus.version>
<antlr.version>4.9.2
</antlr.version> <!-- Overwritting quarkus's antlr version. Reminder: antlr4-maven-plugin,antlr4-runtime, antlr4 need to have the same version -->
<palantirJavaFormat.version>2.38.0</palantirJavaFormat.version>
Expand Down Expand Up @@ -209,6 +209,10 @@
<artifactId>okhttp</artifactId>
<groupId>com.squareup.okhttp3</groupId>
</exclusion>
<exclusion>
<artifactId>mockwebserver</artifactId>
<groupId>com.squareup.okhttp3</groupId>
</exclusion>
<exclusion>
<artifactId>builder-annotations</artifactId>
<groupId>io.sundr</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
public class IngressProducerReconcilableStoreTest {

static {
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME));
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
import io.micrometer.core.instrument.Counter;
import io.micrometer.core.instrument.Measurement;
import io.micrometer.core.instrument.search.MeterNotFoundException;
import io.micrometer.prometheus.PrometheusConfig;
import io.micrometer.prometheus.PrometheusMeterRegistry;
import io.micrometer.prometheusmetrics.PrometheusConfig;
import io.micrometer.prometheusmetrics.PrometheusMeterRegistry;
import io.vertx.core.Future;
import io.vertx.core.Vertx;
import io.vertx.core.buffer.Buffer;
Expand Down Expand Up @@ -113,7 +113,7 @@ public class ReceiverVerticleTest {
static {
BackendRegistries.setupBackend(new MicrometerMetricsOptions()
.setMicrometerRegistry(new PrometheusMeterRegistry(PrometheusConfig.DEFAULT))
.setRegistryName(Metrics.METRICS_REGISTRY_NAME));
.setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

private PrometheusMeterRegistry registry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public abstract class ReceiverVerticleTracingTest {
private IngressProducerReconcilableStore store;

static {
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME));
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

public abstract ReactiveKafkaProducer<String, CloudEvent> createKafkaProducer(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
import dev.knative.eventing.kafka.broker.receiver.impl.auth.EventPolicy;
import io.cloudevents.CloudEvent;
import io.fabric8.kubernetes.client.informers.cache.Lister;
import io.micrometer.prometheus.PrometheusConfig;
import io.micrometer.prometheus.PrometheusMeterRegistry;
import io.micrometer.prometheusmetrics.PrometheusConfig;
import io.micrometer.prometheusmetrics.PrometheusMeterRegistry;
import io.vertx.core.Future;
import io.vertx.core.http.HttpMethod;
import io.vertx.core.http.HttpServerRequest;
Expand All @@ -52,7 +52,7 @@ public class IngressRequestHandlerImplTest {
static {
BackendRegistries.setupBackend(new MicrometerMetricsOptions()
.setMicrometerRegistry(new PrometheusMeterRegistry(PrometheusConfig.DEFAULT))
.setRegistryName(Metrics.METRICS_REGISTRY_NAME));
.setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
public class ReceiverVerticleFactoryTest {

static {
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME));
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public abstract class AbstractDataPlaneTest {

static {
assertThat(PATH_SERVICE_1).isNotEqualTo(PATH_SERVICE_2);
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME));
BackendRegistries.setupBackend(new MicrometerMetricsOptions().setRegistryName(Metrics.METRICS_REGISTRY_NAME), null);
}

private static File dataDir;
Expand Down

0 comments on commit 2b93906

Please sign in to comment.