38 lines
949 B
Kotlin
38 lines
949 B
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("org.springframework.boot") version "2.6.2"
|
|
id("io.spring.dependency-management") version "1.0.11.RELEASE"
|
|
kotlin("jvm") version "1.6.10"
|
|
kotlin("plugin.spring") version "1.6.10"
|
|
}
|
|
|
|
group = "eu.fosil"
|
|
version = "0.0.1-SNAPSHOT"
|
|
java.sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.springframework.boot:spring-boot-starter")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect")
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
|
|
implementation ("net.folivo:matrix-spring-boot-bot:0.5.2")
|
|
runtimeOnly("com.h2database:h2")
|
|
runtimeOnly("io.r2dbc:r2dbc-h2")
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions {
|
|
freeCompilerArgs = listOf("-Xjsr305=strict")
|
|
jvmTarget = "17"
|
|
}
|
|
}
|
|
|
|
tasks.withType<Test> {
|
|
useJUnitPlatform()
|
|
}
|