fix exclusions in shadowjar task
This commit is contained in:
parent
5236b11241
commit
050da40cac
|
|
@ -1,5 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
`java`
|
java
|
||||||
id("com.github.johnrengelman.shadow") version "7.0.0"
|
id("com.github.johnrengelman.shadow") version "7.0.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -32,7 +32,10 @@ allprojects {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// Minimessage
|
// Minimessage
|
||||||
implementation("net.kyori:adventure-text-minimessage:4.1.0-SNAPSHOT")
|
implementation("net.kyori:adventure-text-minimessage:4.1.0-SNAPSHOT") {
|
||||||
|
exclude("net.kyori")
|
||||||
|
exclude("net.kyori.examination")
|
||||||
|
}
|
||||||
// Velocity
|
// Velocity
|
||||||
compileOnly("com.velocitypowered:velocity-api:1.1.5")
|
compileOnly("com.velocitypowered:velocity-api:1.1.5")
|
||||||
annotationProcessor("com.velocitypowered:velocity-api:1.1.5")
|
annotationProcessor("com.velocitypowered:velocity-api:1.1.5")
|
||||||
|
|
@ -52,14 +55,12 @@ tasks {
|
||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
archiveFileName.set("${project.name}-${project.version}.jar")
|
archiveFileName.set("${project.name}-${project.version}.jar")
|
||||||
exclude("net.kyori.adventure")
|
// exclude("net.kyori")
|
||||||
exclude("net.kyori.examination")
|
// exclude("net.kyori.examination")
|
||||||
minimize {
|
|
||||||
//exclude(dependency("net.kyori:.*:.*"))
|
|
||||||
}
|
|
||||||
listOf(
|
listOf(
|
||||||
// "net.kyori",
|
// "net.kyori",
|
||||||
"net.dv8tion.jda"
|
"net.dv8tion.jda",
|
||||||
|
"net.kyori.adventure.text.minimessage"
|
||||||
).forEach { relocate(it, "${rootProject.group}.lib.$it") }
|
).forEach { relocate(it, "${rootProject.group}.lib.$it") }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user