Swetha Namireddy
11/07/2023, 7:25 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Swetha Namireddy
11/08/2023, 1:22 PMSwetha Namireddy
11/08/2023, 1:24 PMbuildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'au.com.dius.pact.provider:gradle:4.1.7'
}
}
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.17'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
id 'au.com.dius.pact' version '4.1.7'
}
group = 'com.pact.example'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '11'
}
apply plugin: 'au.com.dius.pact'
apply plugin: 'groovy'
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
systemProperty 'pact.verifier.publishResults', 'true'
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'au.com.dius.pact.provider:junit5:4.1.7'
}
pact {
reports {
defaultReports()
}
broker {
pactBrokerUrl = '<https://swethatest.pactflow.io/>'
pactBrokerToken = '<token ..>'
}
serviceProviders {
test_provider {
fromPactBroker {
hasPactsFromPactBroker('<https://swethatest.pactflow.io/>', authentication: ['Bearer', '<token ....>'])
}
}
}
}Yousaf Nabi (pactflow.io)
Swetha Namireddy
11/08/2023, 2:25 PMgradle-8.4-biYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)