-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle.kts
70 lines (58 loc) · 2.31 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
@Suppress("DSL_SCOPE_VIOLATION") // TODO remove when https://youtrack.jetbrains.com/issue/KTIJ-19369 is fixed
plugins {
kotlin("plugin.spring")
kotlin("plugin.serialization")
id("org.springframework.boot")
id("io.spring.dependency-management")
}
val slf4jVersion = libs.versions.slf4j.get()
val avro4kSerdeVersion = libs.versions.avro4kSerde.get()
val confluentVersion = libs.versions.confluent.get()
repositories {
maven("https://packages.confluent.io/maven/")
}
dependencies {
implementation(projects.libs.model)
implementation(projects.libs.spring)
implementation(libs.bundles.spring.basic)
developmentOnly(libs.spring.boot.devtools)
// projectreactor
implementation(libs.spring.boot.reactor.kotlin.extensions)
testImplementation(libs.spring.boot.reactor.test)
// spring-cloud bom
implementation(enforcedPlatform(libs.spring.cloud.bom.get().toString()))
// we need add `kafka` binder for `Supplier` functions
// We can only use `Consumer` and `Function` functions with KStream binder.
implementation("org.springframework.cloud:spring-cloud-stream-binder-kafka")
implementation("org.springframework.cloud:spring-cloud-stream-binder-kafka-streams")
// FIXME: Kotlin Lambda support https://github.com/spring-cloud/spring-cloud-function/issues/780
implementation("org.springframework.cloud:spring-cloud-function-kotlin")
// kafka serializers
// implementation("io.confluent:kafka-streams-avro-serde:$confluentVersion")
// implementation("com.github.thake.avro4k:avro4k-kafka-serializer:$avro4kSerdeVersion")
implementation(projects.libs.kstream)
testImplementation(libs.spring.boot.starter.test) {
exclude(module = "mockito-core")
}
testImplementation(libs.spring.boot.mockk.test)
testImplementation(libs.kotest.assertions.json.jvm)
testImplementation(libs.kotest.extensions.spring)
testImplementation("org.springframework.kafka:spring-kafka-test")
}
affectedTestConfiguration { jvmTestTask = "check" }
configurations {
all {
exclude(group = "ch.qos.logback")
}
}
tasks {
bootBuildImage {
verboseLogging.set(true)
}
bootRun {
jvmArgs = listOf(
// This will set logs level DEBUG only for local development.
"-Dlogging.level.micro.apps=DEBUG"
)
}
}