2 id 'org.springframework.boot' version '2.3.4.RELEASE'
3 id 'io.spring.dependency-management' version '1.0.10.RELEASE'
5 id "io.freefair.lombok" version "5.2.1"
6 id "au.com.dius.pact" version "4.1.7"
7 id "com.wiredforcode.spawn" version "0.8.2"
10 group = 'io.pactflow.example'
12 sourceCompatibility = '11'
19 implementation 'org.springframework.boot:spring-boot-starter-hateoas'
20 implementation 'com.jayway.jsonpath:json-path'
21 implementation 'de.ingogriebsch.hateoas:spring-hateoas-siren:1.0.0-M2'
23 testImplementation('org.springframework.boot:spring-boot-starter-test') {
24 exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
32 task startServer(type: SpawnProcessTask, dependsOn: 'assemble') {
33 command "java -jar ${projectDir}/build/libs/siren-provider-0.0.1.jar"
34 ready 'Started SirenProviderApplication'
37 task stopServer(type: KillProcessTask)
41 "Siren Order Provider" {
43 startProviderTask = startServer
44 terminateProviderTask = stopServer
46 hasPactWith("Siren Consumer") {
47 pactSource = file("${projectDir}/../consumer/pacts/Siren Order Provider-Siren Order Service.json")