2022-09-11 00:48:16 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins {
|
2022-09-18 20:49:32 +02:00
|
|
|
id("kafkatorio.conventions.lang.kotlin-jvm")
|
2022-09-11 00:48:16 +02:00
|
|
|
kotlin("plugin.serialization")
|
2022-09-13 17:56:57 +02:00
|
|
|
// application
|
2022-09-11 00:48:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2022-09-13 17:56:57 +02:00
|
|
|
description = "Shared Kafkatorio processors functionality"
|
2022-09-11 00:48:16 +02:00
|
|
|
|
|
|
|
|
val projectId: String by project.extra
|
|
|
|
|
|
2022-09-13 17:56:57 +02:00
|
|
|
val kafkaStateDir: Directory = layout.projectDirectory.dir(".state/kafka")
|
2022-09-11 00:48:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(platform(projects.modules.versionsPlatform))
|
|
|
|
|
|
|
|
|
|
implementation(libs.kafka.streams)
|
|
|
|
|
testImplementation(libs.kafka.streamsTestUtils)
|
|
|
|
|
|
|
|
|
|
implementation(projects.modules.eventsLibrary)
|
|
|
|
|
|
|
|
|
|
implementation(libs.kotlinxSerialization.core)
|
|
|
|
|
implementation(libs.kotlinxSerialization.json)
|
|
|
|
|
|
|
|
|
|
implementation(libs.kotlinx.coroutines.core)
|
|
|
|
|
|
|
|
|
|
implementation(libs.bundles.logging)
|
|
|
|
|
|
|
|
|
|
implementation(libs.scrimage.core)
|
|
|
|
|
|
|
|
|
|
implementation(libs.okio.core)
|
|
|
|
|
|
|
|
|
|
implementation(libs.simpleSyslogParser)
|
|
|
|
|
|
|
|
|
|
implementation(libs.kafka.kotkaStreams)
|
|
|
|
|
|
2022-09-13 17:56:57 +02:00
|
|
|
implementation(libs.bundles.hoplite)
|
2022-09-11 00:48:16 +02:00
|
|
|
|
2022-09-13 17:56:57 +02:00
|
|
|
implementation(libs.ktorServer.authJwt)
|
|
|
|
|
// implementation(libs.nimbusJoseJwt)
|
2022-09-11 00:48:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2022-09-13 17:56:57 +02:00
|
|
|
//application {
|
|
|
|
|
// mainClass.set("dev.adamko.kafkatorio.processor.admin.MainKt")
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
2022-09-11 00:48:16 +02:00
|
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
|
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
|
|
|
|
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
|
|
|
|
"-opt-in=kotlinx.coroutines.FlowPreview",
|
|
|
|
|
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi",
|
|
|
|
|
)
|
|
|
|
|
}
|
2022-09-13 17:56:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
val createKafkaTopics by tasks.registering(JavaExec::class) {
|
|
|
|
|
group = rootProject.name
|
|
|
|
|
classpath = sourceSets.main.get().runtimeClasspath
|
|
|
|
|
mainClass.set("dev.adamko.kafkatorio.processor.admin.MainKt")
|
|
|
|
|
}
|