43 lines
1014 B
Kotlin
43 lines
1014 B
Kotlin
val ktor_version: String by project
|
|
val kotlin_version: String by project
|
|
val trixnity_version: String by project
|
|
val logback_version: String by project
|
|
|
|
|
|
plugins {
|
|
application
|
|
kotlin("jvm") version "1.6.10"
|
|
}
|
|
|
|
group = "eu.fosil"
|
|
version = "0.0.1"
|
|
application {
|
|
mainClass.set("eu.fosil.ApplicationKt")
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap") }
|
|
}
|
|
|
|
dependencies {
|
|
// Ktor
|
|
implementation("io.ktor:ktor-server-netty:$ktor_version")
|
|
implementation("io.ktor:ktor-client-cio:$ktor_version")
|
|
|
|
// Trixnity
|
|
implementation("net.folivo:trixnity-appservice:$trixnity_version")
|
|
|
|
// Logger
|
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions {
|
|
// freeCompilerArgs = listOf("-Xjsr305=strict")
|
|
jvmTarget = "11"
|
|
}
|
|
}
|