From 47e2226be596752a87370404cad198ebe99faec6 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 18 Aug 2019 02:54:27 +0100 Subject: [PATCH] fix shadow jar --- worldedit-bukkit/build.gradle | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/worldedit-bukkit/build.gradle b/worldedit-bukkit/build.gradle index bbd7c4912..137ffd8b4 100644 --- a/worldedit-bukkit/build.gradle +++ b/worldedit-bukkit/build.gradle @@ -47,9 +47,20 @@ dependencies { } shadowJar { - relocate("it.unimi.dsi.fastutil", "com.sk89q.worldedit.bukkit.fastutil") { - include("it.unimi.dsi:fastutil") + dependencies { + relocate "org.slf4j", "com.sk89q.worldedit.slf4j" + relocate "org.apache.logging.slf4j", "com.sk89q.worldedit.log4jbridge" + include(dependency(':worldedit-core')) + include(dependency(':worldedit-libs:core')) + include(dependency(':worldedit-libs:bukkit')) + include(dependency('org.slf4j:slf4j-api')) + include(dependency("org.apache.logging.log4j:log4j-slf4j-impl")) + relocate("it.unimi.dsi.fastutil", "com.sk89q.worldedit.bukkit.fastutil") { + include("it.unimi.dsi:fastutil") + } } + archiveName = "${parent.name}-${project.name.replaceAll("worldedit-", "")}-${parent.version}.jar" + destinationDir = file '../target' } processResources {