Skip to content

Commit f324c7c

Browse files
CME-43 java 21 upgrade (#1514)
1 parent ea841a7 commit f324c7c

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

.github/workflows/dependency-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
path: ~/.gradle/caches
2626
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
2727
restore-keys: ${{ runner.os }}-gradle-
28-
- name: Set up JDK 17
29-
uses: actions/setup-java@v3
28+
- name: Set up JDK 21
29+
uses: actions/setup-java@v4
3030
with:
31-
java-version: 17
31+
java-version: 21
3232
distribution: 'temurin'
3333
- name: Run dependencyCheck
3434
run: ./gradlew dependencyCheckAggregate

.github/workflows/swagger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
path: ~/.gradle/caches
1818
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
1919
restore-keys: ${{ runner.os }}-gradle-
20-
- name: Set up JDK 17
21-
uses: actions/setup-java@v3
20+
- name: Set up JDK 21
21+
uses: actions/setup-java@v4
2222
with:
23-
java-version: 17
23+
java-version: 21
2424
distribution: 'temurin'
2525
- name: Run Swagger Publisher
2626
run: ./gradlew application:test --tests uk.gov.hmcts.net.ccd.definition.store.SwaggerGeneratorTest

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Keep hub.Dockerfile aligned to this file as far as possible
22
ARG JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
3-
ARG APP_INSIGHTS_AGENT_VERSION=3.4.13
3+
ARG APP_INSIGHTS_AGENT_VERSION=3.5.4
44
ARG PLATFORM=""
55

6-
FROM hmctspublic.azurecr.io/base/java${PLATFORM}:17-distroless
6+
FROM hmctspublic.azurecr.io/base/java${PLATFORM}:21-distroless
77

88
# Change to non-root privilege
99
USER hmcts

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ simply ignored
2525

2626
### Prerequisites
2727

28-
- [Open JDK 17](https://openjdk.java.net/)
28+
- [Open JDK 21](https://openjdk.java.net/)
2929
- [Docker](https://www.docker.com)
3030

3131
#### Environment variables

acb.tpl.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 1.0-preview-1
22
steps:
33
- id: pull-base-image-amd64
4-
cmd: docker pull --platform linux/amd64 hmctspublic.azurecr.io/base/java:17-distroless && docker tag hmctspublic.azurecr.io/base/java:17-distroless hmctspublic.azurecr.io/base/java/linux/amd64:17-distroless
4+
cmd: docker pull --platform linux/amd64 hmctspublic.azurecr.io/base/java:21-distroless && docker tag hmctspublic.azurecr.io/base/java:21-distroless hmctspublic.azurecr.io/base/java/linux/amd64:21-distroless
55
when: ["-"]
66
retries: 3
77
retryDelay: 5
@@ -18,7 +18,7 @@ steps:
1818
retryDelay: 5
1919

2020
- id: pull-base-image-arm64
21-
cmd: docker pull --platform linux/arm64 hmctspublic.azurecr.io/base/java:17-distroless && docker tag hmctspublic.azurecr.io/base/java:17-distroless hmctspublic.azurecr.io/base/java/linux/arm64:17-distroless
21+
cmd: docker pull --platform linux/arm64 hmctspublic.azurecr.io/base/java:21-distroless && docker tag hmctspublic.azurecr.io/base/java:21-distroless hmctspublic.azurecr.io/base/java/linux/arm64:21-distroless
2222
when:
2323
- pull-base-image-amd64
2424
retries: 3

build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99

1010
plugins {
1111
id 'application'
12-
id "org.springframework.boot" version '2.7.12'
12+
id "org.springframework.boot" version '2.7.18'
1313
id 'io.spring.dependency-management' version '1.1.5'
1414
id 'se.patrikerdes.use-latest-versions' version '0.2.7'
1515
id 'com.github.ben-manes.versions' version '0.51.0'
@@ -184,7 +184,7 @@ allprojects {
184184

185185
java {
186186
toolchain {
187-
languageVersion = JavaLanguageVersion.of(17)
187+
languageVersion = JavaLanguageVersion.of(21)
188188
}
189189
}
190190

@@ -262,11 +262,11 @@ subprojects { subproject ->
262262
exclude group: 'com.google.guava', module: 'guava'
263263
}
264264

265-
compileOnly 'org.projectlombok:lombok:1.18.28'
266-
annotationProcessor 'org.projectlombok:lombok:1.18.28'
265+
compileOnly 'org.projectlombok:lombok:1.18.34'
266+
annotationProcessor 'org.projectlombok:lombok:1.18.34'
267267

268-
testCompileOnly 'org.projectlombok:lombok:1.18.28'
269-
testAnnotationProcessor 'org.projectlombok:lombok:1.18.28'
268+
testCompileOnly 'org.projectlombok:lombok:1.18.34'
269+
testAnnotationProcessor 'org.projectlombok:lombok:1.18.34'
270270

271271
implementation "org.springframework.security:spring-security-web"
272272
implementation "org.springframework.security:spring-security-config"
@@ -301,7 +301,7 @@ subprojects { subproject ->
301301
// To avoid compiler warnings about @API annotations in JUnit5 code.
302302
testImplementation 'org.apiguardian:apiguardian-api:1.0.0'
303303
testImplementation "org.postgresql:postgresql:42.7.3"
304-
testImplementation "org.testcontainers:postgresql:1.17.2"
304+
testImplementation "org.testcontainers:postgresql:1.20.2"
305305
testImplementation "org.hamcrest:hamcrest-core:${hamcrestVersion}"
306306
testImplementation "org.hamcrest:hamcrest-library:${hamcrestVersion}"
307307
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitJupiterVersion}"

0 commit comments

Comments
 (0)