Skip to content

Commit d250fab

Browse files
committed
Merge branch 'refs/heads/main' into chore/api-test-demo
2 parents 4f552e3 + b5df14d commit d250fab

12 files changed

Lines changed: 274 additions & 23 deletions

File tree

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,14 @@ jobs:
5858
uses: actions/setup-java@v5
5959
with:
6060
distribution: 'temurin'
61-
java-version: '21'
62-
63-
- name: Set up Gradle
64-
uses: gradle/actions/setup-gradle@v5
65-
with:
66-
gradle-version: current
61+
java-version: '25'
6762

6863
- name: Gradle Build
6964
env:
7065
ARTEFACT_VERSION: ${{ needs.Artefact-Version.outputs.artefact_version }}
7166
run: |
7267
echo "Building with ARTEFACT_VERSION=$ARTEFACT_VERSION"
73-
gradle build -DARTEFACT_VERSION=$ARTEFACT_VERSION
68+
./gradlew build -DARTEFACT_VERSION=$ARTEFACT_VERSION
7469
7570
- name: Extract repo name
7671
id: repo_vars
@@ -96,7 +91,7 @@ jobs:
9691
uses: actions/setup-java@v5
9792
with:
9893
distribution: 'temurin'
99-
java-version: '21'
94+
java-version: '25'
10095

10196
- name: Set up Gradle
10297
uses: gradle/actions/setup-gradle@v5
@@ -121,7 +116,7 @@ jobs:
121116
122117
echo "Publishing artefact for version: $ARTEFACT_VERSION"
123118
124-
gradle publish \
119+
./gradlew publish \
125120
-DARTEFACT_VERSION=$ARTEFACT_VERSION \
126121
-DGITHUB_REPOSITORY=${{ github.repository }} \
127122
-DGITHUB_ACTOR=${{ github.actor }} \

.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

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ bin/*
33
!bin/run-in-docker.sh
44
.gradle
55
/build/
6-
/gradlew
76
/gradlew.bat
8-
!gradle/wrapper/gradle-wrapper.properties
97
*.class
108
bin/main/application.yaml
119

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/dependencies/java-core.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,7 @@ dependencies {
2020
implementation "org.mapstruct:mapstruct:$mapstructVersion"
2121
annotationProcessor "org.mapstruct:mapstruct-processor:$mapstructVersion"
2222
}
23+
24+
tasks.named('wrapper') {
25+
delete "${projectDir}/gradlew.bat"
26+
}

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.jar

44.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)