mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-13 14:50:43 +08:00
Add shadow plugin
This commit is contained in:
parent
479e9292d2
commit
fbf5f63c09
@ -1,3 +1,6 @@
|
||||
plugins{
|
||||
id("com.github.johnrengelman.shadow") version "5.2.0"
|
||||
}
|
||||
apply plugin: "kotlin"
|
||||
apply plugin: "java"
|
||||
|
||||
|
@ -23,7 +23,7 @@ fun main() {
|
||||
|
||||
PluginManager.loadPlugins()
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(Thread {
|
||||
Runtime.getRuntime().addShutdownHook(thread(start = false) {
|
||||
PluginManager.disableAllPlugins()
|
||||
})
|
||||
}
|
||||
|
@ -1,8 +1,11 @@
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
java
|
||||
id("com.github.johnrengelman.shadow") version "5.2.0"
|
||||
}
|
||||
|
||||
version = "1.0.0"
|
||||
|
||||
val kotlinVersion: String by rootProject.ext
|
||||
val atomicFuVersion: String by rootProject.ext
|
||||
val coroutinesVersion: String by rootProject.ext
|
||||
@ -37,8 +40,8 @@ dependencies {
|
||||
api(kotlinx("io", kotlinXIoVersion))
|
||||
api(kotlinx("coroutines-io", coroutinesIoVersion))
|
||||
api(kotlinx("coroutines-core", coroutinesVersion))
|
||||
implementation("org.jsoup:jsoup:1.12.1")
|
||||
implementation(group = "com.alibaba", name = "fastjson", version = "1.2.62")
|
||||
api("org.jsoup:jsoup:1.12.1")
|
||||
api(group = "com.alibaba", name = "fastjson", version = "1.2.62")
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile>() {
|
||||
|
Loading…
Reference in New Issue
Block a user