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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
group = "cn.rtast"
|
|
|
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
|
|
|
|
|
|
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 17:50:01 +08:00
|
|
|
val exposedVersion = "0.53.0"
|
2024-08-30 14:24:46 +08:00
|
|
|
implementation(libs.rOneBot)
|
|
|
|
|
implementation(libs.okhttp)
|
2024-08-30 17:50:01 +08:00
|
|
|
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
|
|
|
|
|
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
|
|
|
|
|
implementation("org.xerial:sqlite-jdbc:3.46.1.0")
|
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"
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|