2022-12-16 13:31:13 +01:00
|
|
|
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"
|
2022-12-16 13:31:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
group = 'de.rpr'
|
|
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
sourceCompatibility = '17'
|
|
|
|
|
|
|
|
repositories {
|
2022-12-23 13:32:36 +01:00
|
|
|
mavenCentral()
|
2022-12-16 13:31:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
2022-12-16 13:31:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named('test') {
|
2022-12-23 13:32:36 +01:00
|
|
|
useJUnitPlatform()
|
2022-12-16 13:31:13 +01:00
|
|
|
}
|
2023-01-02 14:01:50 +01:00
|
|
|
|
|
|
|
pact {
|
|
|
|
|
|
|
|
publish {
|
|
|
|
// empty, but needs to be there
|
|
|
|
}
|
|
|
|
|
|
|
|
broker {
|
|
|
|
pactBrokerUrl = "http://localhost:9292"
|
|
|
|
}
|
|
|
|
|
|
|
|
serviceProviders {
|
|
|
|
|
|
|
|
UserServiceJUnit5 {
|
|
|
|
// empty
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|