exclude module-info fix #894

This commit is contained in:
PiggyPiglet 2024-05-20 22:44:44 +08:00
parent 68f467ab29
commit d5e96bd6a6
No known key found for this signature in database
GPG Key ID: A72C64D3A21D0C06
2 changed files with 2 additions and 1 deletions

View File

@ -88,6 +88,8 @@ tasks {
relocate("org.bstats", "me.clip.placeholderapi.metrics") relocate("org.bstats", "me.clip.placeholderapi.metrics")
relocate("net.kyori", "me.clip.placeholderapi.libs.kyori") relocate("net.kyori", "me.clip.placeholderapi.libs.kyori")
exclude("META-INF/versions/**")
} }
test { test {

View File

@ -68,7 +68,6 @@ public final class PlaceholderAPIPlugin extends JavaPlugin {
version = 'v' + version.replace('.', '_').replace("_" + minor, "") + '_' + "R" + (minor - 1); version = 'v' + version.replace('.', '_').replace("_" + minor, "") + '_' + "R" + (minor - 1);
} }
boolean isSpigot; boolean isSpigot;
try { try {
Class.forName("org.spigotmc.SpigotConfig"); Class.forName("org.spigotmc.SpigotConfig");