-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle.kts
51 lines (42 loc) · 1.28 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
id("org.springframework.boot") version "2.7.5"
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.kotlin.plugin.spring)
}
apply(plugin = "io.spring.dependency-management")
repositories {
mavenCentral()
}
group = "com.example"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_1_8
extra["kotlinx-coroutines.version"] = "1.6.2"
dependencies {
implementation(kotlin("reflect"))
implementation(libs.spring.boot.starter.webflux)
implementation(libs.jackson.module.kotlin)
implementation(libs.reactor.kotlin.extensions)
implementation(libs.kotlinx.coroutines.reactor)
testImplementation(libs.springmockk)
testImplementation(libs.kotest.runner.junit5)
testImplementation(libs.kotest.extensions.spring)
testImplementation(libs.reactor.test)
testImplementation(libs.spring.boot.starter.test) {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
exclude(module = "mockito-core")
}
}
tasks.withType<Test> {
useJUnitPlatform()
filter {
isFailOnNoMatchingTests = false
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "1.8"
}
}