diff --git a/bootstrapper-maven-plugin/src/main/resources/templates/pom.xml b/bootstrapper-maven-plugin/src/main/resources/templates/pom.xml index fe9d29300e..01d9f11b8a 100644 --- a/bootstrapper-maven-plugin/src/main/resources/templates/pom.xml +++ b/bootstrapper-maven-plugin/src/main/resources/templates/pom.xml @@ -45,12 +45,6 @@ ${josdk.version} test - - io.fabric8 - crd-generator-apt - ${fabric8-client.version} - provided - org.slf4j slf4j-api @@ -86,7 +80,19 @@ maven-compiler-plugin 3.11.0 + + io.fabric8 + crd-generator-maven-plugin + ${fabric8-client.version} + + + + generate + + + + - \ No newline at end of file + diff --git a/caffeine-bounded-cache-support/pom.xml b/caffeine-bounded-cache-support/pom.xml index 2010056cda..b02b3e1d53 100644 --- a/caffeine-bounded-cache-support/pom.xml +++ b/caffeine-bounded-cache-support/pom.xml @@ -37,11 +37,6 @@ ${project.version} test - - io.fabric8 - crd-generator-apt - test - org.apache.logging.log4j log4j-slf4j-impl @@ -82,7 +77,24 @@ + + io.fabric8 + crd-generator-maven-plugin + ${fabric8-client.version} + + + + generate + + process-test-classes + + ${project.build.testOutputDirectory} + WITH_ALL_DEPENDENCIES_AND_TESTS + + + + - \ No newline at end of file + diff --git a/operator-framework-core/src/test/java/io/javaoperatorsdk/operator/api/config/VersionTest.java b/operator-framework-core/src/test/java/io/javaoperatorsdk/operator/api/config/VersionTest.java index f59b619996..d902a75860 100644 --- a/operator-framework-core/src/test/java/io/javaoperatorsdk/operator/api/config/VersionTest.java +++ b/operator-framework-core/src/test/java/io/javaoperatorsdk/operator/api/config/VersionTest.java @@ -2,7 +2,7 @@ import org.junit.jupiter.api.Test; -import static org.junit.Assert.assertEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; class VersionTest { diff --git a/operator-framework/pom.xml b/operator-framework/pom.xml index 1f18cbc2a9..1aceaa6556 100644 --- a/operator-framework/pom.xml +++ b/operator-framework/pom.xml @@ -59,11 +59,6 @@ compile-testing test - - io.fabric8 - crd-generator-apt - test - io.fabric8 @@ -115,6 +110,23 @@ + + io.fabric8 + crd-generator-maven-plugin + ${fabric8-client.version} + + + + generate + + process-test-classes + + ${project.build.testOutputDirectory} + WITH_ALL_DEPENDENCIES_AND_TESTS + + + + diff --git a/operator-framework/src/test/java/io/javaoperatorsdk/operator/CRDMappingInTestExtensionIT.java b/operator-framework/src/test/java/io/javaoperatorsdk/operator/CRDMappingInTestExtensionIT.java index 09b52f1078..5325742d5f 100644 --- a/operator-framework/src/test/java/io/javaoperatorsdk/operator/CRDMappingInTestExtensionIT.java +++ b/operator-framework/src/test/java/io/javaoperatorsdk/operator/CRDMappingInTestExtensionIT.java @@ -43,7 +43,7 @@ void correctlyAppliesManuallySpecifiedCRD() { @Group("crd.example") @Version("v1") @Kind("Test") - private static class TestCR extends CustomResource implements Namespaced { + public static class TestCR extends CustomResource implements Namespaced { } @ControllerConfiguration diff --git a/operator-framework/src/test/java/io/javaoperatorsdk/operator/config/runtime/TestCustomResource.java b/operator-framework/src/test/java/io/javaoperatorsdk/operator/config/runtime/TestCustomResource.java index 0f94ae92e4..1a75ffaa94 100644 --- a/operator-framework/src/test/java/io/javaoperatorsdk/operator/config/runtime/TestCustomResource.java +++ b/operator-framework/src/test/java/io/javaoperatorsdk/operator/config/runtime/TestCustomResource.java @@ -7,5 +7,5 @@ @Group("sample.javaoperatorsdk") @Version("v1") -class TestCustomResource extends CustomResource implements Namespaced { +public class TestCustomResource extends CustomResource implements Namespaced { } diff --git a/pom.xml b/pom.xml index c7395808b7..7ccb99dcf6 100644 --- a/pom.xml +++ b/pom.xml @@ -44,7 +44,7 @@ okhttp 5.10.1 - 6.13.4 + 7.0-SNAPSHOT 1.7.36 2.24.2 5.14.2 @@ -241,6 +241,17 @@ + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots/ + + true + always + + + + ossrh diff --git a/sample-operators/mysql-schema/pom.xml b/sample-operators/mysql-schema/pom.xml index 05976306a9..0017ac74ed 100644 --- a/sample-operators/mysql-schema/pom.xml +++ b/sample-operators/mysql-schema/pom.xml @@ -52,11 +52,6 @@ mysql-connector-java 8.0.30 - - io.fabric8 - crd-generator-apt - provided - org.apache.logging.log4j log4j-slf4j-impl @@ -85,6 +80,18 @@ + + io.fabric8 + crd-generator-maven-plugin + ${fabric8-client.version} + + + + generate + + + + org.apache.maven.plugins maven-surefire-plugin @@ -113,4 +120,4 @@ - \ No newline at end of file + diff --git a/sample-operators/tomcat-operator/pom.xml b/sample-operators/tomcat-operator/pom.xml index 7bf3ce14d5..471d43d4ed 100644 --- a/sample-operators/tomcat-operator/pom.xml +++ b/sample-operators/tomcat-operator/pom.xml @@ -48,11 +48,6 @@ io.fabric8 kubernetes-httpclient-vertx - - io.fabric8 - crd-generator-apt - provided - org.apache.logging.log4j log4j-slf4j-impl @@ -110,9 +105,20 @@ org.apache.maven.plugins maven-compiler-plugin - 3.12.1 + + + io.fabric8 + crd-generator-maven-plugin + ${fabric8-client.version} + + + + generate + + + - \ No newline at end of file + diff --git a/sample-operators/webpage/pom.xml b/sample-operators/webpage/pom.xml index 348581cd38..cda7e1e46f 100644 --- a/sample-operators/webpage/pom.xml +++ b/sample-operators/webpage/pom.xml @@ -47,11 +47,6 @@ takes 1.24.4 - - io.fabric8 - crd-generator-apt - provided - org.awaitility awaitility @@ -81,9 +76,20 @@ org.apache.maven.plugins maven-compiler-plugin - 3.12.1 + + + io.fabric8 + crd-generator-maven-plugin + ${fabric8-client.version} + + + + generate + + + - \ No newline at end of file +