From 8bcc4b026d0099a498df6955201bf1eb4d5b775b Mon Sep 17 00:00:00 2001 From: ZeroHD Date: Fri, 4 Dec 2020 05:06:16 +0100 Subject: [PATCH] Fixed Javacord not being included in the final jar (#10) Fixed Javacord not being included in the final jar + Fixed according to this issue https://github.com/johnrengelman/shadow/issues/448 Co-authored-by: Joey Hines Reviewed-on: https://git.etztech.xyz/Minecraft/Hush/pulls/10 Reviewed-by: Etzelia Co-Authored-By: ZeroHD Co-Committed-By: ZeroHD --- build.gradle | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 7331481..7115ddf 100644 --- a/build.gradle +++ b/build.gradle @@ -22,12 +22,14 @@ repositories { maven {url = 'https://jitpack.io'} } -dependencies { - compileOnly 'org.spigotmc:spigot-api:1.16.3-R0.1-SNAPSHOT' - compile 'xyz.etztech:javacord:0.2.2' +shadowJar { + project.configurations.implementation.canBeResolved = true + configurations = [project.configurations.implementation] + archiveClassifier.set('') } -shadowJar { - configurations = [project.configurations.compile] - archiveClassifier = "" +dependencies { + compileOnly 'org.spigotmc:spigot-api:1.16.3-R0.1-SNAPSHOT' + implementation 'xyz.etztech:javacord:0.2.2' } +