Fix relocation
This commit is contained in:
parent
d351a424e7
commit
1793dc59ee
|
|
@ -1,4 +1,3 @@
|
||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java")
|
||||||
|
|
@ -39,18 +38,18 @@ tasks {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
create<ConfigureShadowRelocation>("relocateJars") {
|
// create<ConfigureShadowRelocation>("relocateJars") {
|
||||||
target = shadowJar.get()
|
// target = shadowJar.get()
|
||||||
prefix = "${project.name}.lib"
|
// prefix = "${project.name}.lib"
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
shadowJar {
|
// shadowJar {
|
||||||
dependsOn(getByName("relocateJars") as ConfigureShadowRelocation)
|
// dependsOn(getByName("relocateJars") as ConfigureShadowRelocation)
|
||||||
archiveFileName.set("${project.name}-${project.version}.jar")
|
// archiveFileName.set("${project.name}-${project.version}.jar")
|
||||||
minimize()
|
// minimize()
|
||||||
configurations = listOf(project.configurations.shadow.get())
|
// configurations = listOf(project.configurations.shadow.get())
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
build {
|
build {
|
||||||
dependsOn(shadowJar)
|
dependsOn(shadowJar)
|
||||||
}
|
}
|
||||||
|
|
@ -59,13 +58,13 @@ tasks {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// JDA
|
// JDA
|
||||||
shadow("net.dv8tion:JDA:5.0.0-alpha.9") {
|
implementation("net.dv8tion:JDA:5.0.0-alpha.9") {
|
||||||
exclude("opus-java") // exclude audio
|
exclude("opus-java") // exclude audio
|
||||||
}
|
}
|
||||||
// MySQL
|
// MySQL
|
||||||
shadow("mysql:mysql-connector-java:8.0.28")
|
implementation("mysql:mysql-connector-java:8.0.28")
|
||||||
// implementation("org.mariadb.jdbc:mariadb-java-client:2.1.2")
|
// implementation("org.mariadb.jdbc:mariadb-java-client:2.1.2")
|
||||||
|
|
||||||
// Configurate
|
// Configurate
|
||||||
shadow("org.spongepowered:configurate-yaml:4.1.2")
|
implementation("org.spongepowered:configurate-yaml:4.1.2")
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user