mirror of
https://github.com/LamGC/ScalaBot.git
synced 2025-04-29 22:27:31 +00:00
将与配置相关的内容迁移到 scalabot-meta 模块. 其他项目可以使用 meta 模块来生成 ScalaBot 的配置文件, 通过配置文件管理 ScalaBot 的运行. BREAKING CHANGE: 与配置有关的类迁移到了 scalabot-meta 模块. 目前仅所有配置类 (以 `Config` 结尾的 Class) 和相应的序列化类 (以 `Serializer` 结尾的) 都迁移到了 meta 模块, 但其工具方法则作为扩展函数保留在 app 模块中. 这么做的好处是为了方便其他应用 (例如 ScalaBot 外部管理程序) 根据需要生成配置文件. scalabot-meta 将会作为依赖项发布, 可根据需要获取 ScalaBot-meta 生成 ScalaBot 的配置. + 此次改动普通用户无需迁移。
59 lines
1.8 KiB
Plaintext
59 lines
1.8 KiB
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
application
|
|
id("org.jetbrains.kotlinx.kover")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":scalabot-meta"))
|
|
implementation(project(":scalabot-extension"))
|
|
|
|
implementation("org.slf4j:slf4j-api:1.7.36")
|
|
implementation("io.github.microutils:kotlin-logging:2.1.23")
|
|
implementation("ch.qos.logback:logback-classic:1.2.11")
|
|
|
|
val aetherVersion = "1.1.0"
|
|
implementation("org.eclipse.aether:aether-api:$aetherVersion")
|
|
implementation("org.eclipse.aether:aether-util:$aetherVersion")
|
|
implementation("org.eclipse.aether:aether-impl:$aetherVersion")
|
|
implementation("org.eclipse.aether:aether-transport-file:$aetherVersion")
|
|
implementation("org.eclipse.aether:aether-transport-http:$aetherVersion")
|
|
implementation("org.eclipse.aether:aether-connector-basic:$aetherVersion")
|
|
implementation("org.apache.maven:maven-aether-provider:3.3.9")
|
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.2")
|
|
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.20")
|
|
implementation("com.google.code.gson:gson:2.9.0")
|
|
|
|
implementation("org.jdom:jdom2:2.0.6.1")
|
|
|
|
implementation("org.telegram:telegrambots-abilities:6.0.1")
|
|
implementation("org.telegram:telegrambots:6.0.1")
|
|
|
|
implementation("io.prometheus:simpleclient:0.15.0")
|
|
implementation("io.prometheus:simpleclient_httpserver:0.15.0")
|
|
|
|
testImplementation(kotlin("test"))
|
|
testImplementation("io.mockk:mockk:1.12.4")
|
|
testImplementation("com.github.stefanbirkner:system-lambda:1.2.1")
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "11"
|
|
}
|
|
|
|
application {
|
|
mainClass.set("net.lamgc.scalabot.AppMainKt")
|
|
}
|
|
|
|
tasks.jar.configure {
|
|
exclude("**/logback-test.xml")
|
|
}
|