62 lines
1.7 KiB
Kotlin
62 lines
1.7 KiB
Kotlin
plugins {
|
|
application
|
|
kotlin("jvm") version "1.6.20"
|
|
kotlin("plugin.serialization") version "1.6.20"
|
|
}
|
|
|
|
group = "eu.fosil"
|
|
version = "0.0.1"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap") }
|
|
}
|
|
|
|
dependencies {
|
|
// Ktor
|
|
val ktorVersion: String by project
|
|
implementation("io.ktor:ktor-server-netty:$ktorVersion")
|
|
implementation("io.ktor:ktor-client-cio:$ktorVersion")
|
|
|
|
// Trixnity
|
|
implementation("net.folivo:trixnity-applicationservice:2.0.0-RC5")
|
|
|
|
// Exposed
|
|
val exposedVersion: String by project
|
|
dependencies {
|
|
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
|
|
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
|
|
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
|
|
}
|
|
|
|
// H2 database
|
|
implementation("com.h2database:h2:2.1.212")
|
|
|
|
// Jackson (YAML parser)
|
|
val jacksonVersion: String by project
|
|
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:$jacksonVersion")
|
|
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jacksonVersion")
|
|
|
|
// Logger
|
|
implementation("io.github.microutils:kotlin-logging-jvm:2.1.21")
|
|
implementation("ch.qos.logback:logback-classic:1.2.11")
|
|
|
|
// JUnit
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:1.6.10")
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions {
|
|
freeCompilerArgs = listOf("-Xjsr305=strict")
|
|
jvmTarget = "11"
|
|
}
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
application {
|
|
mainClass.set("eu.fosil.okupamicoche.MainKt")
|
|
}
|