From 62754362c2ddc86a2fc575dbd244fe8c406a9ab9 Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Sat, 21 May 2022 12:01:06 +0200 Subject: [PATCH] build: Don't expose jcip and findbugs annotations to the world on runtime (#3533) * build: Don't expose jcip and findbugs * build: Revert relocation change of unpublished, shaded deps * chore: Exclude .DS_Store files --- .gitignore | 2 ++ Bukkit/build.gradle.kts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 2f3f35088..b0ccc3fff 100644 --- a/.gitignore +++ b/.gitignore @@ -131,6 +131,8 @@ local.properties checkstyle.xml classes/ *.bat + +# Other docs/ build/ diff --git a/Bukkit/build.gradle.kts b/Bukkit/build.gradle.kts index e458936c6..a6d056093 100644 --- a/Bukkit/build.gradle.kts +++ b/Bukkit/build.gradle.kts @@ -85,6 +85,8 @@ tasks.named("shadowJar") { relocate("javax.annotation", "com.plotsquared.core.annotation") relocate("com.github.spotbugs", "com.plotsquared.core.spotbugs") relocate("javax.inject", "com.plotsquared.core.annotation.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()