-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
63 lines (48 loc) · 1.97 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
@Suppress("DSL_SCOPE_VIOLATION") // TODO remove when https://youtrack.jetbrains.com/issue/KTIJ-19369 is fixed
plugins {
alias(libs.plugins.kotlin.spring)
alias(libs.plugins.spring.boot)
alias(libs.plugins.spring.dependencyManagement)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.gradle.native)
}
val slf4jVersion = libs.versions.slf4j.get()
dependencies {
implementation(libs.spring.boot.starter.actuator)
implementation(libs.spring.boot.starter.thymeleaf)
implementation(libs.spring.boot.starter.webflux)
implementation(libs.spring.boot.starter.data.r2dbc)
implementation(libs.spring.boot.starter.rsocket)
implementation(libs.database.r2dbc.h2)
// FIXME https://docs.uptrace.dev/guide/java.html#introduction
implementation(libs.snakeyaml)
// implementation(libs.jackson.module.kotlin)
implementation(libs.kotlinx.serialization.json)
implementation(libs.javafaker)
implementation(libs.kotlinx.coroutines.core)
implementation(libs.kotlinx.coroutines.reactive)
implementation(libs.kotlinx.coroutines.reactor)
testImplementation(libs.spring.boot.starter.test)
testImplementation(libs.turbine.test)
runtimeOnly(libs.database.r2dbc.h2)
implementation(libs.markdown)
}
affectedTestConfiguration { jvmTestTask = "check" }
// tasks.named("integrationTest") { dependsOn(rootProject.tasks.named("redisComposeUp")) }
tasks {
bootBuildImage {
// isVerboseLogging = true
// add `bindings` if you are running `gradle bootBuildImage` from behind corp proxy.
// bindings = listOf("${rootDir}/infra/bindings/ca-certificates:/platform/bindings/ca-certificates")
builder.set("paketobuildpacks/builder:tiny")
environment.set(
mapOf(
"BP_NATIVE_IMAGE" to "true"
)
)
}
bootRun {
// This will set logs level DEBUG only for local development.
jvmArgs = listOf("-Dlogging.level.micro.apps=DEBUG")
}
}