From e612121ceef48e389a291befae70de6e148c1ec9 Mon Sep 17 00:00:00 2001 From: onsabdulkalam Date: Mon, 11 May 2026 15:03:27 +0100 Subject: [PATCH 1/6] Upgrade Java to 21 --- pom.xml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index a3b3bf4..0da5c82 100644 --- a/pom.xml +++ b/pom.xml @@ -15,9 +15,11 @@ - 17 + 21 + 21 + @@ -270,13 +272,20 @@ - com.coveo - fmt-maven-plugin - 2.13 + com.diffplug.spotless + spotless-maven-plugin + 2.43.0 + + + + 1.22.0 + + + - format + apply @@ -324,8 +333,8 @@ maven-compiler-plugin - 17 - 17 + 21 + 21 UTF-8 -XDcompilePolicy=simple @@ -340,7 +349,7 @@ org.projectlombok lombok - 1.18.20 + 1.18.30 From a36e691898d1b43b0d2854fead22d6e1d8d503f9 Mon Sep 17 00:00:00 2001 From: onsabdulkalam Date: Mon, 11 May 2026 20:22:03 +0100 Subject: [PATCH 2/6] Upgrade to java 21 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 0da5c82..98f7fd8 100644 --- a/pom.xml +++ b/pom.xml @@ -68,7 +68,7 @@ uk.gov.ons.census census-rm-common-entity-model - 0.0.1-SNAPSHOT + 0.0.2-SNAPSHOT uk.gov.ons.census From 4f934135d8960db1794bdf85129942b72492ddd4 Mon Sep 17 00:00:00 2001 From: onsabdulkalam Date: Wed, 13 May 2026 12:05:22 +0100 Subject: [PATCH 3/6] Fix based on best practices --- pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 98f7fd8..e7082b5 100644 --- a/pom.xml +++ b/pom.xml @@ -285,8 +285,9 @@ - apply + check + verify From 3160646780f7288f270b0b87210bf367ac1312f8 Mon Sep 17 00:00:00 2001 From: onsabdulkalam Date: Thu, 14 May 2026 15:33:56 +0100 Subject: [PATCH 4/6] Fix for service to start --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index a7bc5bf..a23a29c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,12 @@ -FROM eclipse-temurin:17-jre-alpine +FROM eclipse-temurin:21-jre-alpine CMD ["java", "-jar", "/opt/census-rm-job-processor.jar"] COPY healthcheck.sh /opt/healthcheck.sh -RUN addgroup --gid 1000 jobprocessor && \ - adduser --system --uid 1000 jobprocessor jobprocessor +# Create a system group and user without forcing UID/GID +RUN addgroup --system jobprocessor && \ + adduser --system --ingroup jobprocessor jobprocessor + USER jobprocessor COPY target/census-rm-job-processor*.jar /opt/census-rm-job-processor.jar From a37f564d0a0d1f11559383be432a89a36e6810e9 Mon Sep 17 00:00:00 2001 From: onsabdulkalam Date: Thu, 14 May 2026 17:03:40 +0100 Subject: [PATCH 5/6] Service version reverted --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e7082b5..3155e26 100644 --- a/pom.xml +++ b/pom.xml @@ -68,7 +68,7 @@ uk.gov.ons.census census-rm-common-entity-model - 0.0.2-SNAPSHOT + 0.0.1-SNAPSHOT uk.gov.ons.census From 9645e2c6018bd0e155eb8328ca1cf0fcfe680cac Mon Sep 17 00:00:00 2001 From: Ryan Grundy Date: Fri, 22 May 2026 15:19:30 +0100 Subject: [PATCH 6/6] Update Makefile --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2bbdef7..5e899d4 100644 --- a/Makefile +++ b/Makefile @@ -9,13 +9,13 @@ install-no-test: mvn clean install -Dmaven.test.skip=true -Dexec.skip=true -Djacoco.skip=true format: - mvn fmt:format + mvn spotless:apply format-check: - mvn fmt:check + mvn spotless:check check: - mvn fmt:check pmd:check + mvn spotless:check pmd:check test: mvn clean verify jacoco:report