Skip to content

Commit

Permalink
Merge pull request #286 from hmcts/dependabot/gradle/au.com.dius.pact…
Browse files Browse the repository at this point in the history
…-4.6.2

Bump au.com.dius.pact from 4.4.0-beta.2 to 4.6.2
  • Loading branch information
MartinYSpasov authored Aug 29, 2023
2 parents 8566d1c + d2b23b4 commit 5da800b
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
id 'io.freefair.lombok' version '8.1.0'
id 'org.flywaydb.flyway' version '9.21.1'
id "info.solidsoft.pitest" version '1.9.11'
id "au.com.dius.pact" version '4.4.0-beta.2'
id "au.com.dius.pact" version '4.6.2'
}

group = 'uk.gov.hmcts.reform'
Expand Down Expand Up @@ -250,7 +250,7 @@ def versions = [
springSecurity : '6.1.2',
testcontainers : '1.18.3',
wiremock : '2.35.0',
pactVersion : '4.4.0-beta.2',
pactVersion : '4.6.1',
serenity : '3.1.20',
]

Expand Down Expand Up @@ -341,15 +341,6 @@ dependencies {

mainClassName = 'uk.gov.hmcts.reform.ccd.ApplicationBootstrap'

task runAndPublishConsumerPactTests(type: Test){
logger.lifecycle("Runs pact Tests")
testClassesDirs = sourceSets.contractTest.output.classesDirs
classpath = sourceSets.contractTest.runtimeClasspath

}

runAndPublishConsumerPactTests.finalizedBy pactPublish

pact {
broker {
pactBrokerUrl = System.getenv("PACT_BROKER_FULL_URL") ?: 'http://localhost:80'
Expand All @@ -361,6 +352,13 @@ pact {
}
}

task runAndPublishConsumerPactTests(type: Test){
logger.lifecycle("Runs pact Tests")
testClassesDirs = sourceSets.contractTest.output.classesDirs
classpath = sourceSets.contractTest.runtimeClasspath
finalizedBy(pactPublish)
}

task contract(type: Test, description: 'Runs the pact contract tests.', group: 'Verification') {
description = "Runs the consumer Pact tests"
useJUnitPlatform()
Expand Down

0 comments on commit 5da800b

Please sign in to comment.