Moved services each to own class

This commit is contained in:
2022-02-25 01:17:20 +01:00
parent ead4876347
commit e4e38d07fd
10 changed files with 139 additions and 138 deletions

View File

@@ -1,7 +1,5 @@
val ktor_version: String by project
val kotlin_version: String by project
val trixnity_version: String by project
val logback_version: String by project
val ktorVersion = "1.6.7"
val kotlinVersion = "1.6.10"
plugins {
@@ -12,7 +10,7 @@ plugins {
group = "eu.fosil"
version = "0.0.1"
application {
mainClass.set("eu.fosil.ApplicationKt")
mainClass.set("eu.fosil.okupamicoche.ApplicationKt")
}
repositories {
@@ -22,21 +20,21 @@ repositories {
dependencies {
// Ktor
implementation("io.ktor:ktor-server-netty:$ktor_version")
implementation("io.ktor:ktor-client-cio:$ktor_version")
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
// Trixnity
implementation("net.folivo:trixnity-appservice:$trixnity_version")
implementation("net.folivo:trixnity-appservice:1.1.6")
// Logger
implementation("ch.qos.logback:logback-classic:$logback_version")
implementation("ch.qos.logback:logback-classic:1.2.10")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion")
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
// freeCompilerArgs = listOf("-Xjsr305=strict")
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}