computer-vision-project/build.gradle.kts

36 lines
902 B
Plaintext
Raw Normal View History

2022-01-13 14:55:27 +00:00
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")
}