Add shadow plugin

This commit is contained in:
Him188 2020-01-19 21:15:25 +08:00
parent 479e9292d2
commit fbf5f63c09
3 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,6 @@
plugins{
id("com.github.johnrengelman.shadow") version "5.2.0"
}
apply plugin: "kotlin" apply plugin: "kotlin"
apply plugin: "java" apply plugin: "java"

View File

@ -23,7 +23,7 @@ fun main() {
PluginManager.loadPlugins() PluginManager.loadPlugins()
Runtime.getRuntime().addShutdownHook(Thread { Runtime.getRuntime().addShutdownHook(thread(start = false) {
PluginManager.disableAllPlugins() PluginManager.disableAllPlugins()
}) })
} }

View File

@ -1,8 +1,11 @@
plugins { plugins {
kotlin("jvm") kotlin("jvm")
java java
id("com.github.johnrengelman.shadow") version "5.2.0"
} }
version = "1.0.0"
val kotlinVersion: String by rootProject.ext val kotlinVersion: String by rootProject.ext
val atomicFuVersion: String by rootProject.ext val atomicFuVersion: String by rootProject.ext
val coroutinesVersion: String by rootProject.ext val coroutinesVersion: String by rootProject.ext
@ -37,8 +40,8 @@ dependencies {
api(kotlinx("io", kotlinXIoVersion)) api(kotlinx("io", kotlinXIoVersion))
api(kotlinx("coroutines-io", coroutinesIoVersion)) api(kotlinx("coroutines-io", coroutinesIoVersion))
api(kotlinx("coroutines-core", coroutinesVersion)) api(kotlinx("coroutines-core", coroutinesVersion))
implementation("org.jsoup:jsoup:1.12.1") api("org.jsoup:jsoup:1.12.1")
implementation(group = "com.alibaba", name = "fastjson", version = "1.2.62") api(group = "com.alibaba", name = "fastjson", version = "1.2.62")
} }
tasks.withType<JavaCompile>() { tasks.withType<JavaCompile>() {