Deleted Spring Boot, migrated to Trixnity

This commit is contained in:
2022-02-08 19:33:01 +01:00
parent eb27af44e7
commit a9a854cba0
14 changed files with 280 additions and 360 deletions

View File

@@ -1,40 +1,42 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
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 {
id("org.springframework.boot") version "2.4.13"
id("io.spring.dependency-management") version "1.0.11.RELEASE"
kotlin("jvm") version "1.4.32"
kotlin("plugin.spring") version "1.4.32"
application
kotlin("jvm") version "1.6.10"
}
group = "eu.fosil"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
version = "0.0.1"
application {
mainClass.set("eu.fosil.ApplicationKt")
}
repositories {
mavenCentral()
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap") }
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core")
implementation ("net.folivo:matrix-spring-boot-bot:0.4.8")
// implementation ("net.folivo:matrix-spring-boot-bot:0.5.2")
runtimeOnly("com.h2database:h2")
runtimeOnly("io.r2dbc:r2dbc-h2")
developmentOnly("org.springframework.boot:spring-boot-devtools")
testImplementation("org.springframework.boot:spring-boot-starter-test")
// 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<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}
tasks.withType<Test> {
useJUnitPlatform()
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
// freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}