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.2.0-beta.1"
7 id "com.wiredforcode.spawn" version "0.8.2"
10 group = 'io.pactflow.example'
12 sourceCompatibility = '11'
20 implementation 'org.springframework.boot:spring-boot-starter-hateoas'
21 implementation 'com.jayway.jsonpath:json-path'
22 implementation 'de.ingogriebsch.hateoas:spring-hateoas-siren:1.0.0-M2'
24 testImplementation('org.springframework.boot:spring-boot-starter-test') {
25 exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
33 task startServer(type: SpawnProcessTask, dependsOn: 'assemble') {
34 command "java -jar ${projectDir}/build/libs/siren-provider-0.0.1.jar"
35 ready 'Started SirenProviderApplication'
38 task stopServer(type: KillProcessTask)
42 "Siren Order Provider" {
44 startProviderTask = startServer
45 terminateProviderTask = stopServer
47 hasPactWith("Siren Consumer") {
48 pactSource = file("${projectDir}/../consumer/pacts/Siren Order Provider-Siren Order Service.json")