2024-08-27 18:44:32 +08:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
|
|
|
|
|
|
plugins {
|
2024-08-30 14:24:46 +08:00
|
|
|
alias(libs.plugins.kotlin)
|
|
|
|
|
alias(libs.plugins.shadow)
|
2024-08-27 18:44:32 +08:00
|
|
|
}
|
|
|
|
|
|
2024-08-31 22:37:12 +08:00
|
|
|
val fancyBotVersion: String by project
|
|
|
|
|
|
2024-08-27 18:44:32 +08:00
|
|
|
group = "cn.rtast"
|
2024-08-31 22:37:12 +08:00
|
|
|
version = fancyBotVersion
|
2024-08-27 18:44:32 +08:00
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
|
|
|
|
maven {
|
|
|
|
|
name = "repo.rtast.cn"
|
|
|
|
|
url = uri("https://repo.rtast.cn/api/v4/projects/33/packages/maven")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.compileKotlin {
|
|
|
|
|
compilerOptions.jvmTarget = JvmTarget.JVM_17
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.compileJava {
|
|
|
|
|
sourceCompatibility = "17"
|
|
|
|
|
targetCompatibility = "17"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2024-08-30 14:24:46 +08:00
|
|
|
implementation(libs.rOneBot)
|
|
|
|
|
implementation(libs.okhttp)
|
2024-08-30 18:08:14 +08:00
|
|
|
implementation(libs.exposedCore)
|
|
|
|
|
implementation(libs.exposedJDBC)
|
|
|
|
|
implementation(libs.sqliteJDBC)
|
2024-08-27 18:44:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.build {
|
|
|
|
|
dependsOn(tasks.shadowJar)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.jar {
|
2024-08-29 14:36:06 +08:00
|
|
|
enabled = false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.shadowJar {
|
2024-08-27 18:44:32 +08:00
|
|
|
manifest {
|
|
|
|
|
attributes(
|
|
|
|
|
"Main-Class" to "cn.rtast.fancybot.FancyBotKt",
|
|
|
|
|
"Manifest-Version" to "1.0"
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|