mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-06-08 23:08:20 +00:00
73 lines
1.9 KiB
Plaintext
73 lines
1.9 KiB
Plaintext
plugins {
|
|
val kotlinVersion = "2.0.0"
|
|
|
|
id("java")
|
|
id("application")
|
|
kotlin("jvm") version kotlinVersion
|
|
kotlin("plugin.jpa") version kotlinVersion
|
|
}
|
|
|
|
group = "${project.group}"
|
|
version = "${project.version}"
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(21)
|
|
}
|
|
|
|
application {
|
|
mainClass.set("${"${project.group}.${project.name}".lowercase()}.MainKt")
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
// https://mvnrepository.com/artifact/net.dv8tion/JDA
|
|
implementation("net.dv8tion:JDA:5.0.1") {
|
|
exclude(module = "opus-java")
|
|
}
|
|
|
|
// https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
|
|
implementation("ch.qos.logback:logback-classic:1.5.6")
|
|
|
|
// https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC")
|
|
// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-reflect
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect:2.0.0")
|
|
|
|
// https://mvnrepository.com/artifact/com.google.code.gson/gson
|
|
implementation("com.google.code.gson:gson:2.11.0")
|
|
|
|
// https://mvnrepository.com/artifact/io.github.cdimascio/dotenv-kotlin
|
|
implementation("io.github.cdimascio:dotenv-kotlin:6.4.1")
|
|
|
|
kotlin("stdlib")
|
|
|
|
listOf(project(":common"), project(":chatbot"), project(":webserver")).forEach {
|
|
implementation(it)
|
|
}
|
|
}
|
|
|
|
tasks.withType<Jar> {
|
|
manifest {
|
|
attributes["Main-Class"] = application.mainClass
|
|
}
|
|
|
|
from(sourceSets.main.get().output)
|
|
|
|
dependsOn(configurations.runtimeClasspath)
|
|
from({
|
|
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
|
|
})
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|
|
|
|
tasks.named<JavaExec>("run") {
|
|
systemProperty("logback.configurationFile", "logback-debug.xml")
|
|
} |