-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
91 lines (71 loc) · 2.68 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
val kotlinVersion = "2.1.0"
kotlin("jvm") version kotlinVersion
kotlin("plugin.serialization") version kotlinVersion
val detektVersion = "1.23.7"
id("io.gitlab.arturbosch.detekt") version detektVersion
application
}
repositories {
mavenLocal()
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
val kordVersion = "0.15.0"
val slf4jVersion = "2.0.16"
val ktorVersion = "3.0.3"
val exposedVersion = "0.57.0"
val hikariVersion = "6.2.1"
val sqliteVersion = "3.47.1.0"
val mariadbVersion = "3.5.1"
val junitVersion = "5.11.4"
implementation("dev.kord", "kord-core", kordVersion)
implementation("org.slf4j", "slf4j-api", slf4jVersion)
implementation("org.slf4j", "slf4j-jdk14", slf4jVersion)
implementation("io.ktor", "ktor-server-core", ktorVersion)
implementation("io.ktor", "ktor-server-cio", ktorVersion)
implementation("io.ktor", "ktor-server-content-negotiation", ktorVersion)
implementation("io.ktor", "ktor-serialization-kotlinx-json", ktorVersion)
implementation("org.jetbrains.exposed", "exposed-core", exposedVersion)
implementation("org.jetbrains.exposed", "exposed-dao", exposedVersion)
implementation("org.jetbrains.exposed", "exposed-jdbc", exposedVersion)
implementation("org.jetbrains.exposed", "exposed-kotlin-datetime", exposedVersion)
implementation("com.zaxxer", "HikariCP", hikariVersion)
implementation("org.xerial", "sqlite-jdbc", sqliteVersion)
implementation("org.mariadb.jdbc", "mariadb-java-client", mariadbVersion)
testImplementation(kotlin("test-junit5"))
testImplementation("org.junit.jupiter", "junit-jupiter-api", junitVersion)
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", junitVersion)
detektPlugins("io.gitlab.arturbosch.detekt", "detekt-rules-libraries", detekt.toolVersion)
}
detekt {
buildUponDefaultConfig = true
}
application {
// Define the main class for the application.
mainClass.set("de.gianttree.discord.w2g.WatchTogetherKt")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<JavaCompile>() {
targetCompatibility = JavaVersion.VERSION_21.toString()
}
tasks.withType<KotlinCompile>() {
compilerOptions {
jvmTarget = JvmTarget.JVM_21
}
}
tasks.withType<Detekt>() {
jvmTarget = tasks.withType<JavaCompile>().first().targetCompatibility
reports {
html.required.set(true)
xml.required.set(true)
txt.required.set(true)
sarif.required.set(true)
}
}