-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
69 lines (59 loc) · 2.32 KB
/
build.gradle.kts
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import io.spring.gradle.dependencymanagement.dsl.DependencyManagementExtension
import org.springframework.cloud.contract.verifier.config.TestFramework
import org.springframework.cloud.contract.verifier.config.TestMode
import org.springframework.cloud.contract.verifier.plugin.ContractVerifierExtension
buildscript {
repositories {
mavenLocal()
}
dependencies {
// This is needed for `org.springframework.cloud.contract` plugin to pick up pact jsons as an input:
classpath("org.springframework.cloud:spring-cloud-contract-pact:2.1.2.RELEASE")
classpath ("org.springframework.cloud:spring-cloud-contract-gradle-plugin:2.1.2.RELEASE")
// classpath ("org.springframework.cloud:spring-cloud-contract-gradle-plugin:2.2.0.BUILD-SNAPSHOT")
}
}
apply(plugin = "org.springframework.cloud.contract")
plugins {
id("org.springframework.boot") version "2.1.6.RELEASE"
id("java")
id("io.spring.dependency-management") version "1.0.8.RELEASE"
}
group = "com.example"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
}
configure<DependencyManagementExtension> {
imports {
mavenBom("org.springframework.cloud:spring-cloud-contract-dependencies:2.1.2.RELEASE")
}
}
dependencies {
compileOnly("org.projectlombok:lombok")
annotationProcessor("org.projectlombok:lombok")
testCompileOnly("org.projectlombok:lombok")
testAnnotationProcessor("org.projectlombok:lombok")
implementation("org.springframework.boot:spring-boot-starter-webflux")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.cloud:spring-cloud-starter-contract-stub-runner")
testImplementation("org.springframework.cloud:spring-cloud-starter-contract-verifier")
testImplementation("io.projectreactor:reactor-test")
testImplementation("io.rest-assured:spring-web-test-client")
testImplementation("org.junit.jupiter:junit-jupiter:5.5.0")
}
configure<ContractVerifierExtension> {
packageWithBaseClasses = "com.example.demo.contract"
basePackageForTests = packageWithBaseClasses
testMode = TestMode.WEBTESTCLIENT
testFramework = TestFramework.JUNIT5
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks {
test {
useJUnitPlatform()
}
}