From d4429ebce1f4012172c1fdc8c417415a0da71562 Mon Sep 17 00:00:00 2001 From: Ravi Khadiwala Date: Thu, 17 Jul 2025 12:18:14 -0500 Subject: [PATCH] Update to Java 24 and add .java-version --- .github/workflows/documentation.yml | 2 +- .github/workflows/integration-tests.yml | 2 +- .github/workflows/test.yml | 6 +++--- .gitignore | 3 +-- .java-version | 1 + pom.xml | 6 +++--- 6 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 .java-version diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 97e0dac98..e4ac242ec 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 with: distribution: 'temurin' - java-version: '21' + java-version-file: .java-version cache: 'maven' - name: Compile and Build OpenAPI file run: ./mvnw compile diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 14c18e830..c65201f91 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1 with: distribution: 'temurin' - java-version: '21' + java-version-file: .java-version cache: 'maven' - uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1 name: Configure AWS credentials from Test account diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 271628419..dd6a9d4a9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ on: jobs: build: runs-on: ubuntu-latest - container: ubuntu:22.04 + container: ubuntu:24.04 timeout-minutes: 20 services: @@ -21,11 +21,11 @@ jobs: steps: - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Set up JDK 21 + - name: Set up JDK uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0 with: distribution: 'temurin' - java-version: 21 + java-version-file: .java-version cache: 'maven' env: # work around an issue with actions/runner setting an incorrect HOME in containers, which breaks maven caching diff --git a/.gitignore b/.gitignore index 721bacd1e..3a91cac56 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,6 @@ config/deploy.properties /service/config/testing.yml /service/config/deploy.properties /service/dependency-reduced-pom.xml -.java-version .opsmanage put.sh deployer-staging.properties @@ -29,4 +28,4 @@ deployer.log .project .classpath .settings -.DS_Store \ No newline at end of file +.DS_Store diff --git a/.java-version b/.java-version new file mode 100644 index 000000000..665594337 --- /dev/null +++ b/.java-version @@ -0,0 +1 @@ +temurin-24 diff --git a/pom.xml b/pom.xml index 1bb7fdb67..546bfabdb 100644 --- a/pom.xml +++ b/pom.xml @@ -89,8 +89,8 @@ localstack/localstack:3.5.0 - - 02fc89fa8766a9ba221e69225f8d1c10bb91885ddbd3c112448e23488ba40ab6 + + a42f2330212db8bc1459a2550def18f6ec04a8c31494ffc20dea13dfa82a211e UTF-8 @@ -506,7 +506,7 @@ maven-compiler-plugin 3.13.0 - 21 + 24