From d04d900c1353b65e1bba91f6d0373e250d4ec73d Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Wed, 9 Mar 2022 00:12:01 +0100 Subject: [PATCH] build: Don't expose jcip and findbugs --- Bukkit/build.gradle.kts | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/Bukkit/build.gradle.kts b/Bukkit/build.gradle.kts index 8d925d183..5356c0a06 100644 --- a/Bukkit/build.gradle.kts +++ b/Bukkit/build.gradle.kts @@ -68,23 +68,25 @@ tasks.named("shadowJar") { relocate("net.kyori.adventure", "com.plotsquared.core.configuration.adventure") relocate("net.kyori.examination", "com.plotsquared.core.configuration.examination") - relocate("io.papermc.lib", "com.plotsquared.bukkit.paperlib") - relocate("org.bstats", "com.plotsquared.metrics") - relocate("org.enginehub", "com.plotsquared.squirrelid") - relocate("org.khelekore.prtree", "com.plotsquared.prtree") - relocate("com.google.inject", "com.plotsquared.google") - relocate("org.aopalliance", "com.plotsquared.core.aopalliance") - relocate("cloud.commandframework.services", "com.plotsquared.core.services") - relocate("io.leangen.geantyref", "com.plotsquared.core.geantyref") - relocate("com.intellectualsites.arkitektonika", "com.plotsquared.core.arkitektonika") - relocate("com.intellectualsites.http", "com.plotsquared.core.http") - relocate("com.intellectualsites.paster", "com.plotsquared.core.paster") - relocate("org.incendo.serverlib", "com.plotsquared.bukkit.serverlib") - relocate("org.jetbrains", "com.plotsquared.core.annotations") - relocate("org.intellij.lang", "com.plotsquared.core.intellij.annotations") - relocate("javax.annotation", "com.plotsquared.core.annotation") - relocate("com.google.code.findbugs", "com.plotsquared.core.findbugs") - relocate("javax.inject", "com.plotsquared.core.annotation.inject") + relocate("io.papermc.lib", "com.plotsquared.bukkit.internal.paperlib") + relocate("org.bstats", "com.plotsquared.core.internal.metrics") + relocate("org.enginehub", "com.plotsquared.core.squirrelid") + relocate("org.khelekore.prtree", "com.plotsquared.core.prtree") + relocate("com.google.inject", "com.plotsquared.core.google") + relocate("org.aopalliance", "com.plotsquared.core.google.aopalliance") + relocate("cloud.commandframework.services", "com.plotsquared.core.cloud.services") + relocate("io.leangen.geantyref", "com.plotsquared.core.cloud.geantyref") + relocate("com.intellectualsites.arkitektonika", "com.plotsquared.core.web.arkitektonika") + relocate("com.intellectualsites.http", "com.plotsquared.core.web.http") + relocate("com.intellectualsites.paster", "com.plotsquared.core.web.paster") + relocate("org.incendo.serverlib", "com.plotsquared.bukkit.internal.serverlib") + relocate("org.jetbrains", "com.plotsquared.core.annotations.jetbrains.annotation") + relocate("org.intellij.lang", "com.plotsquared.core.annotations.intellij.annotations") + relocate("javax.annotation", "com.plotsquared.core.annotations.javax.annotation") + relocate("com.google.code.findbugs", "com.plotsquared.core.annotations.jsr305") + relocate("javax.inject", "com.plotsquared.core.annotations.javax.inject") + relocate("net.jcip", "com.plotsquared.core.annotations.jcip") + relocate("edu.umd.cs.findbugs", "com.plotsquared.core.annotations.findbugs") // Get rid of all the libs which are 100% unused. minimize()