px32-bot/build.gradle.kts

58 lines
1.9 KiB
Text
Raw Permalink Normal View History

2024-09-01 14:25:09 +00:00
plugins {
kotlin("jvm") version "2.0.20"
2024-09-19 07:27:42 +00:00
kotlin("plugin.serialization") version "2.0.20"
2024-09-01 14:25:09 +00:00
}
2024-09-07 16:13:13 +00:00
group = property("group")!!
version = property("version")!!
2024-09-21 14:13:23 +00:00
2024-09-03 11:58:09 +00:00
val ktor_version: String by project
2024-09-01 14:25:09 +00:00
val log4j_version: String by project
val exposed_version: String by project
2024-09-21 14:13:23 +00:00
val sqlite_version: String by project
val postgres_version: String by project
2024-09-19 00:49:45 +00:00
allprojects {
apply(plugin = "org.jetbrains.kotlin.jvm")
2024-09-19 07:27:42 +00:00
apply(plugin = "org.jetbrains.kotlin.plugin.serialization")
2024-09-18 15:51:42 +00:00
2024-09-19 00:49:45 +00:00
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
2024-09-18 15:58:53 +00:00
}
2024-09-19 00:49:45 +00:00
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
2024-09-18 15:58:53 +00:00
}
2024-09-19 00:49:45 +00:00
repositories {
mavenCentral()
2024-09-18 15:58:53 +00:00
}
2024-09-19 00:49:45 +00:00
}
2024-09-18 15:58:53 +00:00
2024-09-19 00:49:45 +00:00
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")
2024-09-21 14:13:23 +00:00
implementation("org.xerial:sqlite-jdbc:$sqlite_version")
implementation("org.postgresql:postgresql:$postgres_version")
2024-09-19 00:49:45 +00:00
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")
2024-09-19 07:27:42 +00:00
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
2024-09-19 00:49:45 +00:00
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
2024-09-18 15:51:42 +00:00
}
2024-09-01 14:25:09 +00:00
}
2024-09-19 00:49:45 +00:00
tasks.test {
useJUnitPlatform()
}