Migrate to dynamic dependency loading

This commit is contained in:
ceze88 2024-01-11 16:13:13 +01:00
parent b4cb9b2569
commit b65cea5fa4
9 changed files with 33 additions and 9 deletions

16
pom.xml
View File

@ -58,6 +58,22 @@
<exclude>LICENSE.**</exclude> <exclude>LICENSE.**</exclude>
</excludes> </excludes>
</filter> </filter>
<filter>
<artifact>com.craftaro:CraftaroCore</artifact>
<excludeDefaults>false</excludeDefaults>
<excludes>
<exclude>**/third_party/org/apache/**</exclude>
<exclude>**/third_party/net/kyori/**</exclude>
<exclude>**/third_party/com/zaxxer/**</exclude>
<exclude>**/third_party/org/jooq/**</exclude>
<exclude>**/third_party/org/mariadb/**</exclude>
<exclude>**/third_party/com/h2database/**</exclude>
<exclude>**/third_party/org/h2/**</exclude>
<exclude>**/third_party/com/cryptomorin/**</exclude>
<exclude>**/third_party/org/reactivestreams/**</exclude>
</excludes>
</filter>
</filters> </filters>
</configuration> </configuration>
</execution> </execution>

View File

@ -4,8 +4,9 @@ import com.craftaro.core.SongodaCore;
import com.craftaro.core.SongodaPlugin; import com.craftaro.core.SongodaPlugin;
import com.craftaro.core.commands.CommandManager; import com.craftaro.core.commands.CommandManager;
import com.craftaro.core.configuration.Config; import com.craftaro.core.configuration.Config;
import com.craftaro.core.dependency.Dependency;
import com.craftaro.core.gui.GuiManager; import com.craftaro.core.gui.GuiManager;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial; import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicvouchers.commands.CommandEditor; import com.craftaro.epicvouchers.commands.CommandEditor;
import com.craftaro.epicvouchers.commands.CommandEpicVouchers; import com.craftaro.epicvouchers.commands.CommandEpicVouchers;
import com.craftaro.epicvouchers.commands.CommandForce; import com.craftaro.epicvouchers.commands.CommandForce;
@ -34,7 +35,9 @@ import org.bukkit.plugin.PluginManager;
import java.io.File; import java.io.File;
import java.util.Collection; import java.util.Collection;
import java.util.Collections; import java.util.Collections;
import java.util.HashSet;
import java.util.List; import java.util.List;
import java.util.Set;
public class EpicVouchers extends SongodaPlugin { public class EpicVouchers extends SongodaPlugin {
private final GuiManager guiManager = new GuiManager(this); private final GuiManager guiManager = new GuiManager(this);
@ -54,6 +57,11 @@ public class EpicVouchers extends SongodaPlugin {
return getPlugin(EpicVouchers.class); return getPlugin(EpicVouchers.class);
} }
@Override
protected Set<Dependency> getDependencies() {
return new HashSet<>();
}
@Override @Override
public void onPluginLoad() { public void onPluginLoad() {
} }

View File

@ -1,7 +1,7 @@
package com.craftaro.epicvouchers.libraries.inventory; package com.craftaro.epicvouchers.libraries.inventory;
import com.craftaro.core.third_party.com.cryptomorin.xseries.SkullUtils; import com.craftaro.third_party.com.cryptomorin.xseries.SkullUtils;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial; import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicvouchers.EpicVouchers; import com.craftaro.epicvouchers.EpicVouchers;
import com.craftaro.epicvouchers.libraries.ItemBuilder; import com.craftaro.epicvouchers.libraries.ItemBuilder;
import com.craftaro.epicvouchers.menus.ActionMenu; import com.craftaro.epicvouchers.menus.ActionMenu;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicvouchers.menus; package com.craftaro.epicvouchers.menus;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial; import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.TextUtils; import com.craftaro.core.utils.TextUtils;
import com.craftaro.epicvouchers.EpicVouchers; import com.craftaro.epicvouchers.EpicVouchers;
import com.craftaro.epicvouchers.libraries.ItemBuilder; import com.craftaro.epicvouchers.libraries.ItemBuilder;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicvouchers.menus; package com.craftaro.epicvouchers.menus;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial; import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicvouchers.EpicVouchers; import com.craftaro.epicvouchers.EpicVouchers;
import com.craftaro.epicvouchers.libraries.ItemBuilder; import com.craftaro.epicvouchers.libraries.ItemBuilder;
import com.craftaro.epicvouchers.libraries.inventory.FastInv; import com.craftaro.epicvouchers.libraries.inventory.FastInv;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicvouchers.menus; package com.craftaro.epicvouchers.menus;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial; import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.TextUtils; import com.craftaro.core.utils.TextUtils;
import com.craftaro.epicvouchers.EpicVouchers; import com.craftaro.epicvouchers.EpicVouchers;
import com.craftaro.epicvouchers.libraries.ItemBuilder; import com.craftaro.epicvouchers.libraries.ItemBuilder;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicvouchers.menus; package com.craftaro.epicvouchers.menus;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial; import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.utils.ItemUtils; import com.craftaro.core.utils.ItemUtils;
import com.craftaro.epicvouchers.EpicVouchers; import com.craftaro.epicvouchers.EpicVouchers;
import com.craftaro.epicvouchers.libraries.ItemBuilder; import com.craftaro.epicvouchers.libraries.ItemBuilder;

View File

@ -1,6 +1,6 @@
package com.craftaro.epicvouchers.menus.sub.editor; package com.craftaro.epicvouchers.menus.sub.editor;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial; import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.epicvouchers.EpicVouchers; import com.craftaro.epicvouchers.EpicVouchers;
import com.craftaro.epicvouchers.libraries.ItemBuilder; import com.craftaro.epicvouchers.libraries.ItemBuilder;
import com.craftaro.epicvouchers.libraries.inventory.FastInv; import com.craftaro.epicvouchers.libraries.inventory.FastInv;

View File

@ -1,7 +1,7 @@
package com.craftaro.epicvouchers.voucher; package com.craftaro.epicvouchers.voucher;
import com.craftaro.core.compatibility.ServerVersion; import com.craftaro.core.compatibility.ServerVersion;
import com.craftaro.core.third_party.com.cryptomorin.xseries.XMaterial; import com.craftaro.third_party.com.cryptomorin.xseries.XMaterial;
import com.craftaro.core.third_party.de.tr7zw.nbtapi.NBTItem; import com.craftaro.core.third_party.de.tr7zw.nbtapi.NBTItem;
import com.craftaro.core.utils.ItemUtils; import com.craftaro.core.utils.ItemUtils;
import com.craftaro.core.utils.TextUtils; import com.craftaro.core.utils.TextUtils;