mirror of
https://github.com/dalbodeule/chibot-chzzk-bot.git
synced 2025-08-07 21:01:14 +00:00
add JDA activation codes with graalvm native image configures
This commit is contained in:
@@ -14,11 +14,23 @@ java {
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(21)
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass.set("${"${project.group}.${project.name}".lowercase()}.MainKt")
|
||||
}
|
||||
|
||||
graalvmNative {
|
||||
agent {
|
||||
trackReflectionMetadata.set(true)
|
||||
|
||||
metadataCopy {
|
||||
outputDirectories.add("src/main/resources/META-INF/native-image")
|
||||
mergeWithExisting.set(true)
|
||||
}
|
||||
}
|
||||
binaries {
|
||||
binaries.all {
|
||||
resources.autodetect()
|
||||
@@ -28,6 +40,9 @@ graalvmNative {
|
||||
sharedLibrary.set(false)
|
||||
}
|
||||
}
|
||||
metadataRepository {
|
||||
enabled.set(true)
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
@@ -41,6 +56,9 @@ dependencies {
|
||||
}
|
||||
// https://mvnrepository.com/artifact/io.github.R2turnTrue/chzzk4j
|
||||
implementation("io.github.R2turnTrue:chzzk4j:0.0.7")
|
||||
implementation("ch.qos.logback:logback-classic:1.4.14")
|
||||
|
||||
implementation("io.github.cdimascio:dotenv-kotlin:6.4.1")
|
||||
|
||||
kotlin("stdlib-jdk8")
|
||||
}
|
||||
|
Reference in New Issue
Block a user