diff --git a/.github/workflows/ci-java.yml b/.github/workflows/ci-java.yml index 5ccde5ca07..ba3f85cc1a 100644 --- a/.github/workflows/ci-java.yml +++ b/.github/workflows/ci-java.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ 8, 11, 17, 21 ] + java: [ 8, 11, 17, 21] name: Java ${{ matrix.java }} build steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index ffed2f36f4..7a7e27b085 100644 --- a/README.md +++ b/README.md @@ -253,14 +253,14 @@ Beyond that, it is helpful to capture the following information: If you open a Github issue with a request for help, please include as much of the information above as possible and do not forget to sanitize any request/response data posted. ## Development -The project depends on Java 8. To build from source and install to your local Maven cache, run the following: +The project depends on Java 8 to 25. To build from source and install to your local Maven cache, run the following: ```shell $ git submodule update --init --recursive $ ./mvnw clean install ``` -It also depends on [Immutables][i] and won't compile in IDEs like Eclipse or IntelliJ unless you also have an enabled annotation processor. See [this guide][j] for instructions on how to configure your IDE. +It also depends on [Immutables][i] and won't compile in IDEs like Eclipse or IntelliJ unless you also have an installed annotation processor. See [this guide][j] for instructions on how to configure your IDE. To run the integration tests, run the following: diff --git a/cloudfoundry-client-reactor/pom.xml b/cloudfoundry-client-reactor/pom.xml index 10962f393a..0f679aa201 100644 --- a/cloudfoundry-client-reactor/pom.xml +++ b/cloudfoundry-client-reactor/pom.xml @@ -38,6 +38,11 @@ logback-classic test + + com.fasterxml.jackson.core + jackson-annotations + provided + com.fasterxml.jackson.core jackson-databind @@ -190,5 +195,20 @@ + + + jdk-16+ + + (16,] + + + + org.mockito + mockito-subclass + test + + + + diff --git a/cloudfoundry-client-reactor/src/test/java/org/cloudfoundry/reactor/client/v3/serviceInstances/ReactorServiceInstancesV3Test.java b/cloudfoundry-client-reactor/src/test/java/org/cloudfoundry/reactor/client/v3/serviceinstances/ReactorServiceInstancesV3Test.java similarity index 100% rename from cloudfoundry-client-reactor/src/test/java/org/cloudfoundry/reactor/client/v3/serviceInstances/ReactorServiceInstancesV3Test.java rename to cloudfoundry-client-reactor/src/test/java/org/cloudfoundry/reactor/client/v3/serviceinstances/ReactorServiceInstancesV3Test.java diff --git a/cloudfoundry-operations/pom.xml b/cloudfoundry-operations/pom.xml index 5ab004f136..c5373d6c8b 100644 --- a/cloudfoundry-operations/pom.xml +++ b/cloudfoundry-operations/pom.xml @@ -41,6 +41,7 @@ com.fasterxml.jackson.core jackson-databind + provided io.projectreactor @@ -150,5 +151,20 @@ + + + jdk-16+ + + (16,] + + + + org.mockito + mockito-subclass + test + + + + diff --git a/cloudfoundry-util/pom.xml b/cloudfoundry-util/pom.xml index 749f52e746..51b44c1926 100644 --- a/cloudfoundry-util/pom.xml +++ b/cloudfoundry-util/pom.xml @@ -128,5 +128,20 @@ + + + jdk-16+ + + (16,] + + + + org.mockito + mockito-subclass + test + + + + diff --git a/cloudfoundry-util/src/main/java/org/cloudfoundry/util/ByteArrayPool.java b/cloudfoundry-util/src/main/java/org/cloudfoundry/util/ByteArrayPool.java index 70283d3baf..39446d259e 100644 --- a/cloudfoundry-util/src/main/java/org/cloudfoundry/util/ByteArrayPool.java +++ b/cloudfoundry-util/src/main/java/org/cloudfoundry/util/ByteArrayPool.java @@ -29,11 +29,12 @@ import java.util.function.Consumer; /** - * Dynamically creates {@link byte} arrays and caches them, reusing them once they have been released. - *

- * The maximum number of byte arrays is unbounded - *

- * The default time-to-live for unused byte arrays is one minute + * Dynamically creates {@link Byte} arrays and caches them, reusing them once they have been + * released. + * + *

The maximum number of byte arrays is unbounded + * + *

The default time-to-live for unused byte arrays is one minute */ public final class ByteArrayPool { @@ -69,7 +70,7 @@ private ByteArrayPool(int capacity, Duration ttl) { /** * Executes a {@link Consumer} providing a pooled {@code byte} array * - * @param consumer the {@link Consumer} of the {@link byte} array + * @param consumer the {@link Consumer} of the {@link Byte} array */ public static void withByteArray(Consumer consumer) { INSTANCE.doWithByteArray(consumer); diff --git a/pom.xml b/pom.xml index e8bd2cb83a..7f885cae6f 100644 --- a/pom.xml +++ b/pom.xml @@ -55,7 +55,6 @@ - 1.8 UTF-8 2.7.17 @@ -74,6 +73,7 @@ 3.0.2 2.44.4 + disabled @@ -85,7 +85,21 @@ pom import - + + com.fasterxml.jackson.core + jackson-core + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-annotations + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.version} + com.github.zafarkhaja java-semver @@ -163,9 +177,31 @@ -Xlint:-processing -Xlint:-serial + + + org.immutables + value + ${immutables.version} + + + com.fasterxml.jackson.core + jackson-core + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-annotations + ${jackson.version} + + + com.fasterxml.jackson.core + jackson-databind + ${jackson.version} + + true - ${java.version} - ${java.version} + ${java.specification.version} + ${java.specification.version} @@ -222,6 +258,7 @@ + ${project.artifactId}-jdk${java.specification.version}-${project.version} org.jfrog.buildinfo @@ -336,19 +373,29 @@ - jdk-17 + jdk-16+ - 17 + (16,] - 17 3.2.1 4.9.1 3.0.2 -jvm + + + org.mockito + mockito-core + ${mockito.version} + + + org.mockito + mockito-subclass + ${mockito.version} + + - ${project.artifactId}-jdk17-${project.version} org.apache.maven.plugins @@ -360,45 +407,21 @@ -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED true - ${java.version} - ${java.version} + ${java.specification.version} + ${java.specification.version} - - jdk-21 + jdk-23+ - 21 + (23,] - 21 - 3.2.1 - 4.9.1 - 3.0.2 - -jvm + 3.5.8 - - ${project.artifactId}-jdk21-${project.version} - - - org.apache.maven.plugins - maven-compiler-plugin - - - true - - -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED - - true - ${java.version} - ${java.version} - - - -