36 lines
970 B
Kotlin
36 lines
970 B
Kotlin
plugins {
|
|
id("com.gradleup.shadow") version "9.3.1"
|
|
kotlin("jvm") version "2.2.21"
|
|
}
|
|
|
|
kotlin.jvmToolchain(21)
|
|
repositories.mavenCentral()
|
|
val main = "dev.zerozipp.MainKt"
|
|
group = "dev.zerozipp"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
dependencies {
|
|
val slf4j = properties["slf4j.version"]
|
|
val vosk = properties["vosk.version"]
|
|
val gson = properties["gson.version"]
|
|
val ktor = properties["ktor.version"]
|
|
|
|
implementation("com.alphacephei:vosk:$vosk")
|
|
implementation("com.google.code.gson:gson:$gson")
|
|
implementation("io.ktor:ktor-client-content-negotiation:$ktor")
|
|
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktor")
|
|
implementation("io.ktor:ktor-client-core:$ktor")
|
|
implementation("io.ktor:ktor-client-cio:$ktor")
|
|
implementation("org.slf4j:slf4j-simple:$slf4j")
|
|
testImplementation(kotlin("test"))
|
|
}
|
|
|
|
tasks.shadowJar {
|
|
manifest.attributes(
|
|
"Main-Class" to main
|
|
)
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
} |