-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
75 lines (63 loc) · 2.16 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
70
71
72
73
74
75
plugins {
alias(libs.plugins.spring.boot)
alias(libs.plugins.spring.dependencies)
alias(libs.plugins.spring.kotlin)
alias(libs.plugins.kotlinx.serialization)
id("build-jvm")
}
dependencies {
implementation(libs.spring.actuator)
implementation(libs.spring.webflux)
implementation(libs.spring.webflux.ui)
implementation(libs.jackson.kotlin)
implementation(kotlin("reflect"))
implementation(kotlin("stdlib"))
implementation(libs.coroutines.core)
implementation(libs.coroutines.reactor)
implementation(libs.coroutines.reactive)
implementation(libs.kotlinx.serialization.core)
implementation(libs.kotlinx.serialization.json)
// Внутренние модели
implementation(project(":ok-marketplace-common"))
implementation(project(":ok-marketplace-app-common"))
implementation(libs.mkpl.logs.logback)
// v1 api
implementation(project(":ok-marketplace-api-v1-jackson"))
implementation(project(":ok-marketplace-api-v1-mappers"))
// v2 api
implementation(project(":ok-marketplace-api-v2-kmp"))
// biz
implementation(project(":ok-marketplace-biz"))
// DB
implementation(projects.okMarketplaceRepoStubs)
implementation(projects.okMarketplaceRepoInmemory)
implementation(projects.okMarketplaceRepoPostgres)
testImplementation(projects.okMarketplaceRepoCommon)
testImplementation(projects.okMarketplaceStubs)
// State
implementation(libs.mkpl.state.common)
implementation(libs.mkpl.state.biz)
// tests
testImplementation(kotlin("test-junit5"))
testImplementation(libs.spring.test)
testImplementation(libs.mockito.kotlin)
testImplementation(libs.spring.mockk)
}
tasks {
withType<ProcessResources> {
val files = listOf("spec-v1", "spec-v2").map {
rootProject.ext[it]
}
from(files) {
into("/static")
filter {
// Устанавливаем версию в сваггере
it.replace("\${VERSION_APP}", project.version.toString())
}
}
}
}
tasks.withType<Test> {
useJUnitPlatform()
environment("MKPLADS_DB", "test_db")
}