Skip to content

Commit b5df14d

Browse files
authored
Merge pull request #105 from hmcts/feature/AMP-194-java25
AMP-194 - upgraded to java 25.
2 parents 2c6f340 + ac5c97d commit b5df14d

8 files changed

Lines changed: 17 additions & 14 deletions

File tree

.github/workflows/ci-build-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
uses: actions/setup-java@v5
5959
with:
6060
distribution: 'temurin'
61-
java-version: '21'
61+
java-version: '25'
6262

6363
- name: Gradle Build
6464
env:
@@ -91,7 +91,7 @@ jobs:
9191
uses: actions/setup-java@v5
9292
with:
9393
distribution: 'temurin'
94-
java-version: '21'
94+
java-version: '25'
9595

9696
- name: Set up Gradle
9797
uses: gradle/actions/setup-gradle@v5

.github/workflows/code-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/setup-java@v5
1818
with:
1919
distribution: 'temurin'
20-
java-version: '21'
20+
java-version: '25'
2121

2222
- uses: pmd/pmd-github-action@v2
2323
id: pmd

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- uses: actions/setup-java@v5
4040
with:
4141
distribution: 'temurin'
42-
java-version: 21
42+
java-version: 25
4343

4444
- name: Set up Gradle
4545
uses: gradle/actions/setup-gradle@v5
@@ -81,7 +81,7 @@ jobs:
8181
- uses: actions/setup-java@v5
8282
with:
8383
distribution: 'temurin'
84-
java-version: 21
84+
java-version: 25
8585

8686
- name: Set up Gradle
8787
uses: gradle/actions/setup-gradle@v5

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# Dockerfile (project root)
2-
FROM eclipse-temurin:21-jre-alpine
2+
FROM eclipse-temurin:25-jre
33

44
# minimal runtime tooling for healthcheck
5-
RUN apk add --no-cache curl
5+
RUN apt-get update \
6+
&& apt-get install -y --no-install-recommends curl \
7+
&& rm -rf /var/lib/apt/lists/*
68

79
# run as non-root
8-
RUN addgroup -S app && adduser -S app -G app
10+
RUN groupadd -r app && useradd -r -g app app
911
WORKDIR /app
1012

1113
# copy all jars (bootJar + plain). We'll run the non-plain jar.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Further documentation can be found in the [docs](docs) directory.
3232

3333
### Prerequisites
3434

35-
- ☕️ **Java 21.0.8 or later**: Ensure Java is installed and available on your `PATH`.
35+
- ☕️ **Java 25 or later**: Ensure Java is installed and available on your `PATH`.
3636
- ⚙️ **Gradle**: [Install Gradle](https://gradle.org/install/). The project itself defines which Gradle version to use (gradle/wraper/gradle-wrapper.properties).
3737

3838
You can verify installation with:

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ springBoot {
4040
}
4141

4242
dependencies {
43-
implementation("uk.gov.hmcts.cp:api-hmcts-crime-template:2.0.1")
43+
implementation("uk.gov.hmcts.cp:api-hmcts-crime-template:2.0.2")
4444

4545
// --- Observability / Actuator / OTEL / Prometheus ---
4646
implementation 'org.springframework.boot:spring-boot-starter-actuator'
47-
implementation 'org.hibernate.validator:hibernate-validator'
47+
implementation 'org.hibernate.validator:hibernate-validator'
4848
implementation 'org.springframework.boot:spring-boot-starter-opentelemetry'
4949
implementation 'io.jsonwebtoken:jjwt:0.13.0'
5050
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'

gradle/github/java.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
java {
2-
sourceCompatibility = JavaVersion.VERSION_21
3-
targetCompatibility = JavaVersion.VERSION_21
2+
toolchain {
3+
languageVersion = JavaLanguageVersion.of(25)
4+
}
45
}
56
tasks.withType(JavaCompile).configureEach {
67
options.compilerArgs << "-Xlint:unchecked" << "-Werror"

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)