From 267d125212e43cf21089940f2d595183637540c8 Mon Sep 17 00:00:00 2001 From: Andy Kruth Date: Thu, 2 Nov 2023 17:57:36 -0400 Subject: [PATCH] overriding nexus plugin to handle java17, cleaning up kafka image --- .../streamregistry/it/StreamRegistryIT.java | 2 +- pom.xml | 23 +++++++++++++++++++ .../streamregistry/TestUtils.java | 2 +- .../streamregistry/state/it/AgentIT.java | 2 +- .../streamregistry/state/it/StateIT.java | 2 +- 5 files changed, 27 insertions(+), 4 deletions(-) diff --git a/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/StreamRegistryIT.java b/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/StreamRegistryIT.java index 8e1da89cc..7db8e5e59 100644 --- a/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/StreamRegistryIT.java +++ b/it/src/test/java/com/expediagroup/streamplatform/streamregistry/it/StreamRegistryIT.java @@ -55,7 +55,7 @@ public class StreamRegistryIT { private static ConfigurableApplicationContext context; @ClassRule - public static KafkaContainer kafka = new KafkaContainer(TestUtils.kafkaImageName); + public static KafkaContainer kafka = new KafkaContainer(TestUtils.KAFKA_IMAGE_NAME); @BeforeClass public static void before() throws IOException { diff --git a/pom.xml b/pom.xml index 68e3642f2..573b2b85f 100644 --- a/pom.xml +++ b/pom.xml @@ -304,6 +304,29 @@ true + + + org.sonatype.plugins + nexus-staging-maven-plugin + ${nexus.staging.maven.plugin.version} + true + + sonatype-nexus-staging + https://oss.sonatype.org/ + true + + + + com.thoughtworks.xstream + xstream + 1.4.15 + + + diff --git a/state/it/src/main/java/com/expediagroup/streamplatform/streamregistry/TestUtils.java b/state/it/src/main/java/com/expediagroup/streamplatform/streamregistry/TestUtils.java index de4c33ba2..d825daadf 100644 --- a/state/it/src/main/java/com/expediagroup/streamplatform/streamregistry/TestUtils.java +++ b/state/it/src/main/java/com/expediagroup/streamplatform/streamregistry/TestUtils.java @@ -18,5 +18,5 @@ import org.testcontainers.utility.DockerImageName; public class TestUtils { - public static DockerImageName kafkaImageName = DockerImageName.parse("confluentinc/cp-kafka:7.4.0"); + public static final DockerImageName KAFKA_IMAGE_NAME = DockerImageName.parse("confluentinc/cp-kafka:7.4.0"); } diff --git a/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/AgentIT.java b/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/AgentIT.java index 750a94b63..1b6ebfe30 100644 --- a/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/AgentIT.java +++ b/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/AgentIT.java @@ -78,7 +78,7 @@ public class AgentIT { .pollDelay(1, SECONDS); @Rule - public KafkaContainer kafka = new KafkaContainer(TestUtils.kafkaImageName); + public KafkaContainer kafka = new KafkaContainer(TestUtils.KAFKA_IMAGE_NAME); private String topicName; private KafkaEventSender kafkaEventSender; diff --git a/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/StateIT.java b/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/StateIT.java index 18d4eb9f2..269ceae4c 100644 --- a/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/StateIT.java +++ b/state/it/src/test/java/com/expediagroup/streamplatform/streamregistry/state/it/StateIT.java @@ -53,7 +53,7 @@ public class StateIT { @Rule - public KafkaContainer kafka = new KafkaContainer(TestUtils.kafkaImageName); + public KafkaContainer kafka = new KafkaContainer(TestUtils.KAFKA_IMAGE_NAME); private final ObjectMapper mapper = new ObjectMapper(); private final ObjectNode configuration = mapper.createObjectNode();