Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9267802
Add ADO pipeline configuration for build, test, and code coverage
DannyJo Jun 25, 2026
16de1aa
Remove unnecessary Maven settings file option in ADO pipeline configu…
DannyJo Jun 25, 2026
1994b24
Add Maven settings file download to ADO pipeline configuration
DannyJo Jun 25, 2026
b3ab01b
Update test results file pattern in ADO pipeline configuration
DannyJo Jun 25, 2026
647b584
Update ADO pipeline deploy step
DannyJo Jul 16, 2026
caec0d9
Normalize artifact IDs across all POM files to use consistent lowerca…
DannyJo Jul 16, 2026
023dca2
Add GitHub Packages repository to distribution management in POM
DannyJo Jul 16, 2026
faef6ab
add release stage
andywhardy Jul 31, 2026
b6463b4
add release stage
andywhardy Jul 31, 2026
065bf41
add release stage
andywhardy Jul 31, 2026
e79ee7b
add release stage
andywhardy Jul 31, 2026
9060fa1
add release stage
andywhardy Jul 31, 2026
3349593
add release stage
andywhardy Jul 31, 2026
2b88c7a
add release stage
andywhardy Jul 31, 2026
c5e8634
add release stage
andywhardy Jul 31, 2026
10c1be8
add release stage
andywhardy Jul 31, 2026
f8007d9
add release stage
andywhardy Jul 31, 2026
2618354
add release stage
andywhardy Jul 31, 2026
b4b309f
add release stage
andywhardy Jul 31, 2026
ecb6319
[maven-release-plugin] prepare release 4.0.19-${env.BUILD_NUMBER}
andywhardy Jul 31, 2026
22ff7ac
[maven-release-plugin] prepare for next development iteration
andywhardy Jul 31, 2026
2c7bdaf
add release stage
andywhardy Jul 31, 2026
62e3e24
add release stage
andywhardy Jul 31, 2026
5c7cb77
add release stage
andywhardy Jul 31, 2026
aa0e643
add release stage
andywhardy Jul 31, 2026
f9b36c7
add release stage
andywhardy Jul 31, 2026
bdec6ce
[maven-release-plugin] prepare release 4.0.20-${env.BUILD_NUMBER}
Jul 31, 2026
eb39453
[maven-release-plugin] prepare for next development iteration
Jul 31, 2026
a15071b
[maven-release-plugin] prepare release 4.0.21-${env.BUILD_NUMBER}
Jul 31, 2026
e75f7c0
[maven-release-plugin] prepare for next development iteration
Jul 31, 2026
c59947e
add release stage
andywhardy Jul 31, 2026
b09b7d5
[maven-release-plugin] prepare release 4.0.22-${env.BUILD_NUMBER}
Jul 31, 2026
877d830
[maven-release-plugin] prepare for next development iteration
Jul 31, 2026
843b3fc
add release stage
andywhardy Jul 31, 2026
1b5639f
Merge remote-tracking branch 'refs/remotes/origin/ado-pipeline' into …
andywhardy Jul 31, 2026
a54fcdc
[maven-release-plugin] prepare release 4.0.23-${env.BUILD_NUMBER}
Jul 31, 2026
5868f5f
[maven-release-plugin] prepare for next development iteration
Jul 31, 2026
1fb5305
add release stage
andywhardy Jul 31, 2026
9ccffe1
Merge remote-tracking branch 'refs/remotes/origin/ado-pipeline' into …
andywhardy Jul 31, 2026
0ee2e12
[maven-release-plugin] prepare release 4.0.24-${env.BUILD_NUMBER}
Jul 31, 2026
d3f74bd
[maven-release-plugin] prepare for next development iteration
Jul 31, 2026
4571ee8
add release stage
andywhardy Jul 31, 2026
1d78486
[maven-release-plugin] prepare release 4.0.25-${env.BUILD_NUMBER}
Jul 31, 2026
a0a2014
[maven-release-plugin] prepare for next development iteration
Jul 31, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions azure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Azure</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common-azure</artifactId>
<version>4.0.26-SNAPSHOT</version>
<name>azure</name>

<parent>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common</artifactId>
<version>4.0.26-SNAPSHOT</version>
</parent>

<scm>
Expand Down
8 changes: 4 additions & 4 deletions event/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Event</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common-event</artifactId>
<version>4.0.26-SNAPSHOT</version>
<name>event</name>

<parent>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common</artifactId>
<version>4.0.26-SNAPSHOT</version>
</parent>

<scm>
Expand Down
8 changes: 4 additions & 4 deletions health-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Health-Tests</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common-health-tests</artifactId>
<version>4.0.26-SNAPSHOT</version>
<name>health-tests</name>
<description>An integration test library for testing correct deployment of the Shared Spring Boot health
Configuration
</description>

<parent>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common</artifactId>
<version>4.0.26-SNAPSHOT</version>
</parent>

<scm>
Expand Down
8 changes: 4 additions & 4 deletions health/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Health</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common-health</artifactId>
<version>4.0.26-SNAPSHOT</version>
<name>health</name>

<parent>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common</artifactId>
<version>4.0.26-SNAPSHOT</version>
</parent>

<scm>
Expand Down
8 changes: 4 additions & 4 deletions logging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<artifactId>TracesX-SpringBoot-Common-Logging</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common-logging</artifactId>
<version>4.0.26-SNAPSHOT</version>
<name>logging</name>

<parent>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common</artifactId>
<version>4.0.26-SNAPSHOT</version>
</parent>

<scm>
Expand Down
36 changes: 16 additions & 20 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<modelVersion>4.0.0</modelVersion>

<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Parent</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common-parent</artifactId>
<version>4.0.26-SNAPSHOT</version>
<packaging>pom</packaging>

<name>parent</name>
Expand All @@ -12,19 +12,15 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.5.5</version>
<version>3.5.14</version>
</parent>


<distributionManagement>
<snapshotRepository>
<id>release</id>
<name>Snapshots</name>
<url>https://artifactoryv2.azure.defra.cloud/artifactory/maven-snapshots-local</url>
</snapshotRepository>
<repository>
<id>release</id>
<name>Releases</name>
<url>${repo.releases.url}</url>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/DEFRA/ipaffs-spring-boot-common</url>
</repository>
</distributionManagement>

Expand All @@ -41,7 +37,7 @@

ie it will get bumped/have -SNAPSHOT added/removed when the main build runs on the CI server
-->
<tracesx.springboot.common.version>4.0.19-SNAPSHOT</tracesx.springboot.common.version>
<tracesx.springboot.common.version>4.0.26-SNAPSHOT</tracesx.springboot.common.version>

<java.version>21</java.version>

Expand Down Expand Up @@ -82,42 +78,42 @@
<dependencies>
<dependency>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Azure</artifactId>
<artifactId>tracesx-springboot-common-azure</artifactId>
<version>${tracesx.springboot.common.version}</version>
</dependency>
<dependency>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Event</artifactId>
<artifactId>tracesx-springboot-common-event</artifactId>
<version>${tracesx.springboot.common.version}</version>
</dependency>
<dependency>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Health</artifactId>
<artifactId>tracesx-springboot-common-health</artifactId>
<version>${tracesx.springboot.common.version}</version>
</dependency>
<dependency>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Health-Tests</artifactId>
<artifactId>tracesx-springboot-common-health-tests</artifactId>
<version>${tracesx.springboot.common.version}</version>
</dependency>
<dependency>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Logging</artifactId>
<artifactId>tracesx-springboot-common-logging</artifactId>
<version>${tracesx.springboot.common.version}</version>
</dependency>
<dependency>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Security</artifactId>
<artifactId>tracesx-springboot-common-security</artifactId>
<version>${tracesx.springboot.common.version}</version>
</dependency>
<dependency>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Security-Tests</artifactId>
<artifactId>tracesx-springboot-common-security-tests</artifactId>
<version>${tracesx.springboot.common.version}</version>
</dependency>
<dependency>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Version</artifactId>
<artifactId>tracesx-springboot-common-version</artifactId>
<version>${tracesx.springboot.common.version}</version>
</dependency>
<dependency>
Expand Down
76 changes: 76 additions & 0 deletions pipeline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
trigger:
branches:
include:
- '*'

pr:
branches:
exclude:
- '*'

pool:
name: 'DEFRA-COMMON-UBUNTU-SSV5'

jobs:
- job: Release
displayName: Release
condition: and(not(failed()), not(canceled()), ne(variables['Build.SourceBranch'], 'refs/heads/main'))
variables:
MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository
MAVEN_OPTS: '-Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'
steps:
- checkout: self
persistCredentials: true
fetchDepth: 0

- script: |
git checkout $(Build.SourceBranchName)
displayName: Checkout branch

- script: |
LAST_COMMIT_MESSAGE="$(git log -1 --pretty=%B)"
echo "Last commit message: $LAST_COMMIT_MESSAGE"

if [[ "$LAST_COMMIT_MESSAGE" == *"maven-release-plugin"* ]] || \
[[ "$LAST_COMMIT_MESSAGE" == *"bump-new-npm-version"* ]]; then
echo "Previous commit was a release commit. Skipping Maven release."
echo "##vso[task.setvariable variable=skipRelease]true"
else
echo "##vso[task.setvariable variable=skipRelease]false"
fi
displayName: Check last commit message


- script: |
git config user.email "imports-jenkins@defra.onmicrosoft.com"
git config user.name "imports-jenkins"
displayName: "Git author"


- task: DownloadSecureFile@1
name: mavenSettings
displayName: 'Download Maven Settings'
inputs:
secureFile: 'maven.xml'

- task: Cache@2
inputs:
key: 'maven | "$(Agent.OS)" | **/pom.xml'
restoreKeys: |
maven | "$(Agent.OS)"
maven
path: $(MAVEN_CACHE_FOLDER)
displayName: Cache Maven local repo

- task: Maven@4
displayName: 'Release'
condition: and(succeeded(), ne(variables['skipRelease'], 'true'))
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx512m $(MAVEN_OPTS)'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.21'
jdkArchitectureOption: 'x64'
options: '--s $(mavenSettings.secureFilePath)'
goals: '--batch-mode clean test package release:prepare release:perform'

13 changes: 9 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common</artifactId>
<version>4.0.26-SNAPSHOT</version>
<packaging>pom</packaging>
<description>Shared Spring Boot: Common Libraries Parent and Aggregator Module</description>
<name>common-parent</name>

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>3.5.5</version>
<version>3.5.14</version>
</parent>

<properties>
Expand Down Expand Up @@ -68,7 +68,7 @@
</modules>

<distributionManagement>
<snapshotRepository>
<!-- <snapshotRepository>
<id>release</id>
<name>Snapshots</name>
<url>https://artifactoryv2.azure.defra.cloud/artifactory/maven-snapshots-local</url>
Expand All @@ -77,6 +77,11 @@
<id>release</id>
<name>Releases</name>
<url>${repo.releases.url}</url>
</repository>-->
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/DEFRA/ipaffs-spring-boot-common</url>
</repository>
</distributionManagement>

Expand Down
16 changes: 4 additions & 12 deletions security-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,17 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Security-Tests</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common-security-tests</artifactId>
<version>4.0.26-SNAPSHOT</version>
<name>security-tests</name>
<description>An integration test library for testing correct deployment of the Shared Spring Boot Web Security Configuration</description>

<parent>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common</artifactId>
<version>4.0.26-SNAPSHOT</version>
</parent>

<distributionManagement>
<repository>
<id>release</id>
<name>Releases</name>
<url>${repo.releases.url}</url>
</repository>
</distributionManagement>

<scm>
<connection>${parent.scm.connection}</connection>
<tag>HEAD</tag>
Expand Down
8 changes: 4 additions & 4 deletions security/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common-Security</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common-security</artifactId>
<version>4.0.26-SNAPSHOT</version>
<name>security</name>
<description>Shared Spring Boot Web Security configuration</description>

<parent>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common</artifactId>
<version>4.0.26-SNAPSHOT</version>
</parent>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ private VerificationResult verifyClaims(JWTClaimsSet claims, KeyAndClaims keyAnd
Set.of("exp"))
.verify(claims, null);

LOGGER.info("JWT claims verified successfully.");
return VerificationResult.SUCCESS;
} catch (BadJWTException exception) {
if (exception.getMessage().contains("issuer")) {
Expand Down
8 changes: 4 additions & 4 deletions version/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<artifactId>TracesX-SpringBoot-Common-Version</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common-version</artifactId>
<version>4.0.26-SNAPSHOT</version>
<name>version</name>

<parent>
<groupId>uk.gov.defra.tracesx</groupId>
<artifactId>TracesX-SpringBoot-Common</artifactId>
<version>4.0.19-SNAPSHOT</version>
<artifactId>tracesx-springboot-common</artifactId>
<version>4.0.26-SNAPSHOT</version>
</parent>

<scm>
Expand Down