-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle.kts
55 lines (46 loc) · 1.72 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
import com.sourcemuse.gradle.plugin.GradleMongoPluginExtension
plugins {
id("org.springframework.boot")
id("io.spring.dependency-management")
id("org.jetbrains.kotlin.jvm")
id("org.jlleitschuh.gradle.ktlint")
id("org.jetbrains.kotlin.plugin.allopen")
id("org.jetbrains.kotlin.plugin.spring")
id("groovy")
id("com.sourcemuse.mongo")
}
version = "0.0.1-SNAPSHOT"
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-mongodb-reactive")
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation(libs.rxjava.reactivestreams)
implementation("org.springframework:spring-aspects")
implementation(project(":grooves-api"))
implementation(project(":grooves-example-test"))
runtimeOnly(libs.jaxb.api)
runtimeOnly(libs.sunjaxb.core)
runtimeOnly(libs.sunjaxb.impl)
runtimeOnly(libs.activation)
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation(libs.spock.core)
testImplementation(libs.spock.spring)
testImplementation("io.projectreactor.addons:reactor-test:3.0.7.RELEASE")
}
tasks.named("bootRun") { dependsOn("startMongoDb") }
tasks.named("bootRun") { finalizedBy("stopMongoDb") }
tasks.named("test") { dependsOn("startMongoDb") }
tasks.named("test") { finalizedBy("stopMongoDb") }
configure<GradleMongoPluginExtension> {
setPort(27021)
}
tasks.withType<Test> {
useJUnitPlatform()
}
kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}