-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
59 lines (50 loc) · 1.94 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
plugins {
kotlin("jvm") version "2.0.20"
id("org.jetbrains.dokka") version "1.9.20"
kotlin("plugin.serialization") version "2.0.20"
}
group = property("group")!!
version = property("version")!!
val ktor_version: String by project
val log4j_version: String by project
val exposed_version: String by project
val sqlite_version: String by project
val postgres_version: String by project
allprojects {
apply(plugin = "org.jetbrains.dokka")
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "org.jetbrains.kotlin.plugin.serialization")
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
}
subprojects {
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
implementation("net.dv8tion:JDA:5.1.0")
implementation("io.ktor:ktor-client-cio:$ktor_version")
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("org.xerial:sqlite-jdbc:$sqlite_version")
implementation("org.postgresql:postgresql:$postgres_version")
implementation("org.apache.logging.log4j:log4j-api:$log4j_version")
implementation("org.apache.logging.log4j:log4j-core:$log4j_version")
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
implementation("org.apache.logging.log4j:log4j-slf4j2-impl:$log4j_version")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
}
tasks.test {
useJUnitPlatform()
}