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
This commit is contained in:
Alexander Brandes 2022-05-21 12:01:06 +02:00 committed by GitHub
parent 2e9dfd6f6f
commit 62754362c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

2
.gitignore vendored
View File

@ -131,6 +131,8 @@ local.properties
checkstyle.xml
classes/
*.bat
# Other
docs/
build/

View File

@ -85,6 +85,8 @@ tasks.named<ShadowJar>("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()