forked from DiUS/pact-workshop-jvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
32 lines (25 loc) · 836 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
subprojects {
apply plugin: 'java'
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.22'
compile 'org.apache.commons:commons-lang3:3.7'
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.18.0'
testCompile 'org.hamcrest:hamcrest-integration:1.3'
}
}
task copyPactToDropwizard(type: Copy) {
from "${project(':consumer').buildDir}/pacts"
into "${project(':providers:dropwizard-provider').buildDir}/pacts"
}
task copyPactToSpringboot(type: Copy) {
from "${project(':consumer').buildDir}/pacts"
into "${project(':providers:springboot-provider').buildDir}/pacts"
}
task publishWorkshopPact(dependsOn: [copyPactToDropwizard, copyPactToSpringboot],
description: 'Publish the pact file to the provider projects')