Skip to content

Commit 37e5266

Browse files
committed
Update plugins for Gradle 9 compatibility
- SpotBugs: 6.4.8 → 6.5.0 - docker-compose: 0.17.12 → 0.17.21 - Pact: 4.6.18 → 4.7.0 (with library 4.6.20 → 4.7.0) All updated versions are confirmed compatible with Gradle 9 and Groovy 4.
1 parent c7a3719 commit 37e5266

6 files changed

Lines changed: 14 additions & 4 deletions

File tree

doc-checking-app-api/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ var pactDir = layout.buildDirectory.dir("pacts").get().asFile.path
4848

4949
task pactConsumerTests (type: Test, group: "verification") {
5050
useJUnitPlatform()
51+
testClassesDirs = sourceSets.test.output.classesDirs
52+
classpath = sourceSets.test.runtimeClasspath
5153
include 'uk/gov/di/authentication/app/contract/**'
5254
systemProperties['pact.rootDir'] = pactDir
5355
outputs.dir pactDir

frontend-api/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ var pactDir = layout.buildDirectory.dir("pacts").get().asFile.path
6464

6565
task pactConsumerTests (type: Test, group: "verification") {
6666
useJUnitPlatform()
67+
testClassesDirs = sourceSets.test.output.classesDirs
68+
classpath = sourceSets.test.runtimeClasspath
6769
include 'uk/gov/di/authentication/frontendapi/contract/**'
6870
systemProperties['pact.rootDir'] = pactDir
6971
outputs.dir pactDir

gradle/libs.versions.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
awsSdk = "2.44.4"
33
junit = "6.0.3"
4-
pact = "4.6.20"
4+
pact = "4.7.0"
55
spotbugs = "4.9.8"
66
xray = "2.21.0"
77

@@ -107,8 +107,8 @@ xray = [
107107
]
108108

109109
[plugins]
110-
dockerCompose = "com.avast.gradle.docker-compose:0.17.12"
111-
pact = "au.com.dius.pact:4.6.18"
110+
dockerCompose = "com.avast.gradle.docker-compose:0.17.21"
111+
pact = "au.com.dius.pact:4.7.0"
112112
sonar = "org.sonarqube:7.2.3.7755"
113-
spotbugs = "com.github.spotbugs:6.4.8"
113+
spotbugs = "com.github.spotbugs:6.5.0"
114114
spotless = "com.diffplug.spotless:8.4.0"

integration-tests/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ pactPublish.enabled = false
9898

9999
task pactProviderTests (type: Test, group: "verification") {
100100
useJUnitPlatform()
101+
testClassesDirs = sourceSets.test.output.classesDirs
102+
classpath = sourceSets.test.runtimeClasspath
101103
include 'uk/gov/di/authentication/contract/**'
102104

103105
systemProperties['pact.provider.branch'] = "${System.env.GIT_BRANCH}"

ipv-api/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ var pactDir = layout.buildDirectory.dir("pacts").get().asFile.path
4949

5050
task pactConsumerTests (type: Test, group: "verification") {
5151
useJUnitPlatform()
52+
testClassesDirs = sourceSets.test.output.classesDirs
53+
classpath = sourceSets.test.runtimeClasspath
5254
include 'uk/gov/di/authentication/ipv/contract/**'
5355
systemProperties['pact.rootDir'] = pactDir
5456
outputs.dir pactDir

oidc-api/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ var pactDir = layout.buildDirectory.dir("pacts").get().asFile.path
5555

5656
task pactConsumerTests (type: Test, group: "verification") {
5757
useJUnitPlatform()
58+
testClassesDirs = sourceSets.test.output.classesDirs
59+
classpath = sourceSets.test.runtimeClasspath
5860
include '/uk/gov/di/authentication/oidc/contract/**'
5961
systemProperties['pact.rootDir'] = pactDir
6062
outputs.dir pactDir

0 commit comments

Comments
 (0)