From a1c532a697731e62f56149ba472da1187fbd5c70 Mon Sep 17 00:00:00 2001 From: Chris Laprun Date: Fri, 30 Aug 2024 15:35:45 +0200 Subject: [PATCH 1/2] fix: clean up dependencies Signed-off-by: Chris Laprun --- .../dependent/workflow/WorkflowTest.java | 4 +--- operator-framework/pom.xml | 1 + pom.xml | 20 ------------------- sample-operators/tomcat-operator/pom.xml | 6 ------ 4 files changed, 2 insertions(+), 29 deletions(-) diff --git a/operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/dependent/workflow/WorkflowTest.java b/operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/dependent/workflow/WorkflowTest.java index bc6ab8515f..72ec14ebbf 100644 --- a/operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/dependent/workflow/WorkflowTest.java +++ b/operator-framework-core/src/test/java/io/javaoperatorsdk/operator/processing/dependent/workflow/WorkflowTest.java @@ -14,9 +14,7 @@ import io.javaoperatorsdk.operator.sample.simple.TestCustomResource; import static org.assertj.core.api.Assertions.assertThat; -import static org.junit.Assert.assertThrows; -import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.*; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.withSettings; diff --git a/operator-framework/pom.xml b/operator-framework/pom.xml index 2f2fd2cee8..fc4a0c8980 100644 --- a/operator-framework/pom.xml +++ b/operator-framework/pom.xml @@ -20,6 +20,7 @@ io.fabric8 kubernetes-httpclient-${fabric8-httpclient-impl.name} + provided org.apache.commons diff --git a/pom.xml b/pom.xml index 255fd7a06b..74d2bc2648 100644 --- a/pom.xml +++ b/pom.xml @@ -55,7 +55,6 @@ 4.2.0 2.7.3 1.13.3 - 4.12.0 3.1.8 0.9.6 0.9.11 @@ -195,25 +194,6 @@ operator-framework ${project.version} - - - com.squareup.okhttp3 - okhttp - ${okhttp.version} - - - com.squareup.okhttp3 - logging-interceptor - ${okhttp.version} - - - com.squareup.okhttp3 - mockwebserver - ${okhttp.version} - com.github.ben-manes.caffeine caffeine diff --git a/sample-operators/tomcat-operator/pom.xml b/sample-operators/tomcat-operator/pom.xml index f4ca853ce0..c2e32d2abf 100644 --- a/sample-operators/tomcat-operator/pom.xml +++ b/sample-operators/tomcat-operator/pom.xml @@ -37,12 +37,6 @@ io.javaoperatorsdk operator-framework - - - io.fabric8 - kubernetes-httpclient-okhttp - - io.fabric8 From fb0918b5d06257c550a01019d2220465e027fad3 Mon Sep 17 00:00:00 2001 From: Chris Laprun Date: Fri, 30 Aug 2024 15:48:36 +0200 Subject: [PATCH 2/2] fix: an HTTP client implementation is required Signed-off-by: Chris Laprun --- operator-framework/pom.xml | 1 - sample-operators/tomcat-operator/pom.xml | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/operator-framework/pom.xml b/operator-framework/pom.xml index fc4a0c8980..2f2fd2cee8 100644 --- a/operator-framework/pom.xml +++ b/operator-framework/pom.xml @@ -20,7 +20,6 @@ io.fabric8 kubernetes-httpclient-${fabric8-httpclient-impl.name} - provided org.apache.commons diff --git a/sample-operators/tomcat-operator/pom.xml b/sample-operators/tomcat-operator/pom.xml index c2e32d2abf..f4ca853ce0 100644 --- a/sample-operators/tomcat-operator/pom.xml +++ b/sample-operators/tomcat-operator/pom.xml @@ -37,6 +37,12 @@ io.javaoperatorsdk operator-framework + + + io.fabric8 + kubernetes-httpclient-okhttp + + io.fabric8