-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
58 lines (47 loc) · 2.22 KB
/
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
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
plugins {
id 'io.spring.dependency-management'
id 'org.springframework.boot'
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.kotlin.plugin.spring'
}
group = 'me.jangjunha.ftgo'
version = '0.0.1-SNAPSHOT'
ext {
set('springCloudVersion', "2022.0.3")
}
dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.2'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-reactor'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation 'io.projectreactor.kotlin:reactor-kotlin-extensions'
implementation "io.grpc:grpc-api:$grpcVersion"
implementation "io.grpc:grpc-netty:$grpcVersion"
implementation "io.grpc:grpc-kotlin-stub:$grpcKotlinVersion"
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-resource-server'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
implementation project(':ftgo-common')
implementation project(':ftgo-restaurant-service-api')
implementation project(':ftgo-kitchen-service-api')
implementation project(':ftgo-order-service-api')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
testImplementation "com.ninja-squad:springmockk:4.0.0"
testImplementation 'au.com.dius.pact.consumer:junit5:4.6.2'
testImplementation 'au.com.dius.pact.provider:junit5spring:4.6.2'
testImplementation project(':ftgo-pact')
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
tasks.named('test') {
useJUnitPlatform()
systemProperty("pact.provider.version", System.getenv("GIT_COMMIT") ?: "")
systemProperty("pact.provider.tag", System.getenv("GIT_BRANCH") ?: "")
systemProperty("pact.provider.branch", System.getenv("GIT_BRANCH") ?: "")
systemProperty("pactbroker.consumerversionselectors.rawjson", "[{\"mainBranch\":true}]")
systemProperty("pact.verifier.publishResults", System.getenv("PACT_BROKER_PUBLISH_VERIFICATION_RESULTS") == null ? "false" : "true")
}