From b6a3b71fff6d25039eb78b0ffc6cc4ddb2ef6b4f Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Fri, 4 Aug 2023 11:21:18 +0200 Subject: [PATCH] feat: gradle base API based on v8.2.1 Signed-off-by: Marc Nuri --- CHANGELOG.md | 1 + java-generator/gradle-plugin/pom.xml | 69 ++++--------- java-generator/it/pom.xml | 33 ++----- .../generator/testing/GradleProperties.java | 2 +- .../generator/gradle/plugin/SimpleIT.java | 2 +- java-generator/pom.xml | 97 +++---------------- kubernetes-model-generator/pom.xml | 2 +- pom.xml | 35 +++++-- 8 files changed, 68 insertions(+), 173 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d81b320a1f..da10225c7dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ * Fix #5368: added support for additional ListOptions fields #### Dependency Upgrade +* Fix #5373: Gradle base API based on v8.2.1 #### New Features diff --git a/java-generator/gradle-plugin/pom.xml b/java-generator/gradle-plugin/pom.xml index 1acd1d68dda..83d1f56a7d9 100644 --- a/java-generator/gradle-plugin/pom.xml +++ b/java-generator/gradle-plugin/pom.xml @@ -45,33 +45,28 @@ java-generator-core + - org.codehaus.groovy + org.apache.groovy groovy-all + ${groovy-api.version} + pom + provided + + + org.apache.groovy + groovy-test + + + org.apache.groovy + groovy-test-junit5 + + org.gradle - gradle-base-services - - - org.gradle - gradle-core - - - org.gradle - gradle-core-api - - - org.gradle - gradle-logging - - - org.gradle - gradle-plugins - - - org.gradle - gradle-model-core + gradle-all + provided @@ -82,36 +77,6 @@ org.mockito mockito-core - - - - org.gradle - gradle-base-services-groovy - - - org.gradle - gradle-messaging - - - org.gradle - gradle-native - - - org.gradle - gradle-platform-jvm - - - org.gradle - gradle-process-services - - - org.gradle - gradle-tooling-api - - - org.gradle - gradle-test-kit - diff --git a/java-generator/it/pom.xml b/java-generator/it/pom.xml index 130101f0074..b9991ae8f0e 100644 --- a/java-generator/it/pom.xml +++ b/java-generator/it/pom.xml @@ -69,36 +69,21 @@ org.gradle - gradle-base-services-groovy + gradle-all + test + - org.gradle - gradle-messaging - - - org.gradle - gradle-native - - - org.gradle - gradle-platform-jvm - - - org.gradle - gradle-process-services - - - org.gradle - gradle-tooling-api - - - org.gradle - gradle-test-kit + com.google.guava + guava + ${guava.version} + test - commons-io commons-io + ${commons-io.version} + test diff --git a/java-generator/it/src/main/java-templates/io/fabric8/java/generator/testing/GradleProperties.java b/java-generator/it/src/main/java-templates/io/fabric8/java/generator/testing/GradleProperties.java index 0f76d6efbaf..854da950ec9 100644 --- a/java-generator/it/src/main/java-templates/io/fabric8/java/generator/testing/GradleProperties.java +++ b/java-generator/it/src/main/java-templates/io/fabric8/java/generator/testing/GradleProperties.java @@ -17,7 +17,7 @@ public final class GradleProperties { public static String binariesVersion() { - return "${gradle-binaries.version}"; + return "${gradle-api.version}"; } private GradleProperties() { diff --git a/java-generator/it/src/test/java/io/fabric8/java/generator/gradle/plugin/SimpleIT.java b/java-generator/it/src/test/java/io/fabric8/java/generator/gradle/plugin/SimpleIT.java index 1c1cb3fb2cc..bd167f86cd2 100644 --- a/java-generator/it/src/test/java/io/fabric8/java/generator/gradle/plugin/SimpleIT.java +++ b/java-generator/it/src/test/java/io/fabric8/java/generator/gradle/plugin/SimpleIT.java @@ -26,7 +26,7 @@ class SimpleIT { @RegisterExtension - private final ITGradleRunnerExtension gradleRunner = new ITGradleRunnerExtension(); + final ITGradleRunnerExtension gradleRunner = new ITGradleRunnerExtension(); /** * Verify that the {@code crd2java} Gradle task is available diff --git a/java-generator/pom.xml b/java-generator/pom.xml index bd229ecb351..2210ec787b3 100644 --- a/java-generator/pom.xml +++ b/java-generator/pom.xml @@ -40,11 +40,7 @@ - 8.1 - 6.1.1 - 2.4.21 1 - 2.13.0 @@ -82,98 +78,27 @@ ${project.version} - org.codehaus.groovy + org.apache.groovy groovy-all ${groovy-api.version} + pom provided org.gradle - gradle-base-services + gradle-all ${gradle-api.version} provided - - org.gradle - gradle-core - ${gradle-api.version} - provided - - - org.gradle - gradle-core-api - ${gradle-api.version} - provided - - - org.gradle - gradle-logging - ${gradle-api.version} - provided - - - org.gradle - gradle-plugins - ${gradle-api.version} - provided - - - org.gradle - gradle-model-core - ${gradle-api.version} - provided - - - - org.gradle - gradle-base-services-groovy - ${gradle-api.version} - test - - - org.gradle - gradle-messaging - ${gradle-api.version} - test - - - org.gradle - gradle-native - ${gradle-api.version} - test - - - org.gradle - gradle-platform-jvm - ${gradle-api.version} - test - - - org.gradle - gradle-process-services - ${gradle-api.version} - test - - - org.gradle - gradle-test-kit - ${gradle-api.version} - test - - - org.gradle - gradle-tooling-api - ${gradle-api.version} - test - - - - commons-io - commons-io - ${commons-io.version} - test - + + + + com.marcnuri.plugins + gradle-api-maven-plugin + + + diff --git a/kubernetes-model-generator/pom.xml b/kubernetes-model-generator/pom.xml index 768bab3f973..93ef33867a2 100644 --- a/kubernetes-model-generator/pom.xml +++ b/kubernetes-model-generator/pom.xml @@ -252,7 +252,7 @@ [1.8,) - -Xdoclint:none + none diff --git a/pom.xml b/pom.xml index 1d074441c29..a264e960324 100644 --- a/pom.xml +++ b/pom.xml @@ -28,18 +28,18 @@ Fabric8 :: Kubernetes :: Project Java client for Kubernetes and OpenShift - http://fabric8.io/ + https://github.com/fabric8io/kubernetes-client 2015 Red Hat - http://redhat.com + https://redhat.com Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.txt + https://www.apache.org/licenses/LICENSE-2.0.txt repo @@ -51,14 +51,14 @@ geeks Fabric8 Development Team fabric8 - http://fabric8.io/ + https://github.com/fabric8io/kubernetes-client scm:git:git@github.com:fabric8io/kubernetes-client.git scm:git:git@github.com:fabric8io/kubernetes-client.git - http://github.com/fabric8io/kubernetes-client/ + https://github.com/fabric8io/kubernetes-client/ ${project.version} @@ -104,6 +104,8 @@ 3.0.2 + 8.2.1 + 4.0.13 5.10.0 @@ -126,6 +128,8 @@ 2.0 1.76 1.23.0 + 2.13.0 + 32.1.2-jre 1.12.0 1.2.1 1.0.0 @@ -151,6 +155,7 @@ 3.1.1 3.6.0 3.9.0 + 0.0.2 1.2.3 2.4.3.Final 0.8.10 @@ -161,11 +166,13 @@ 1.8 1.8 + false 1.1.1 ${project.basedir}/src/generated/java https://localhost:8443 + false @@ -262,6 +269,7 @@ io.fabric8 + kubernetes-model-autoscaling ${project.version} @@ -892,10 +900,12 @@ + org.apache.maven.plugins maven-jar-plugin ${maven.jar.plugin.version} + org.apache.maven.plugins maven-javadoc-plugin ${maven.javadoc.plugin.version} @@ -908,6 +918,7 @@ + org.apache.maven.plugins maven-source-plugin ${maven.source.plugin.version} @@ -940,10 +951,12 @@ ${maven.gpg.plugin.version} + org.apache.maven.plugins maven-deploy-plugin ${maven.deploy.plugin.version} + org.apache.maven.plugins maven-resources-plugin ${maven.resources.plugin.version} @@ -1044,6 +1057,12 @@ + + com.marcnuri.plugins + gradle-api-maven-plugin + ${gradle-api-maven-plugin.version} + true + @@ -1275,7 +1294,7 @@ jar - ${javadoc.opts} + ${javadoc.doclint} @@ -1324,7 +1343,7 @@ [1.8,) - -Xdoclint:none + none @@ -1475,7 +1494,7 @@ jar - ${javadoc.opts} + ${javadoc.doclint}