36 lines
902 B
Plaintext
36 lines
902 B
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
kotlin("jvm") version "1.6.10"
|
|
application
|
|
}
|
|
|
|
group = "network.rs485.ben"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.6.0")
|
|
implementation("org.jetbrains.kotlin:kotlin-annotations-jvm:1.6.10")
|
|
implementation("io.ktor:ktor-io:1.6.7")
|
|
implementation(files("/usr/share/java/opencv.jar")) // provided by the OS (Arch Linux) after installation
|
|
testImplementation(kotlin("test"))
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.withType<KotlinCompile>() {
|
|
kotlinOptions.jvmTarget = "17"
|
|
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
|
|
}
|
|
|
|
application {
|
|
mainClass.set("network.rs485.ben.computervision.MainKt")
|
|
}
|