-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle.kts
49 lines (45 loc) · 1.56 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
import io.github.flaxoos.ktor.extensions.targetJvm
plugins {
id("ktor-server-plugin-conventions")
alias(libs.plugins.kotlin.serialization)
}
repositories {
mavenCentral()
maven {
url = uri("https://maven.repository.redhat.com/earlyaccess/all/")
}
maven {
url = uri("https://packages.confluent.io/maven/")
}
}
tasks.matching { it.name.contains("native", ignoreCase = true) }.configureEach {
enabled = false
}
kotlin {
targetJvm(project)
sourceSets {
val jvmMain by getting {
dependencies {
api(libs.kafka.clients)
api(libs.avro4k.core)
api(libs.kafka.avro.serializer)
api(libs.kafka.schema.registry.client)
api(libs.ktor.serialization.kotlinx.json)
implementation(libs.ktor.client.cio)
implementation(libs.ktor.client.java)
implementation(libs.ktor.client.contentNegotiation)
}
}
val jvmTest by getting {
dependencies {
implementation(dependencies.platform(libs.testcontainers.bom.get()))
implementation(libs.kotest.extensions.testcontainers)
implementation(libs.kotest.extensions.testcontainers.kafka)
implementation(libs.testcontainers.kafka)
implementation(libs.ktor.server.contentNegotiation)
implementation(libs.ktor.client.contentNegotiation)
implementation(libs.ktor.serialization.kotlinx.json)
}
}
}
}