pact-example/build.gradle

48 lines
1.1 KiB
Groovy
Raw Normal View History

plugins {
2022-12-23 13:32:36 +01:00
id "java"
id "org.springframework.boot" version "3.0.0"
id "io.spring.dependency-management" version "1.1.0"
2023-01-02 14:01:50 +01:00
id "au.com.dius.pact" version "4.4.2"
}
group = 'de.rpr'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
repositories {
2022-12-23 13:32:36 +01:00
mavenCentral()
}
dependencies {
2022-12-23 13:32:36 +01:00
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'au.com.dius.pact:consumer:4.4.2'
testImplementation 'au.com.dius.pact.consumer:junit5:4.4.2'
testImplementation 'au.com.dius.pact:provider:4.4.2'
testImplementation 'au.com.dius.pact.provider:junit5:4.4.2'
testImplementation 'au.com.dius.pact.provider:junit5spring:4.4.2'
testImplementation 'org.junit-pioneer:junit-pioneer:2.0.0-RC1'
}
tasks.named('test') {
2022-12-23 13:32:36 +01:00
useJUnitPlatform()
}
2023-01-02 14:01:50 +01:00
pact {
publish {
// empty, but needs to be there
}
broker {
pactBrokerUrl = "http://localhost:9292"
}
serviceProviders {
UserServiceJUnit5 {
// empty
}
}
}