happy071841

Build this Gradle Minecraft plugin project into a jar file. Use Java 25 and the Gradle build config included in the zip. I want the final compiled plugin jar that I can place directly into my Minecraft server's plugins folder.

Kodari AI
KodariOct 1 at 4:23 am 1
  • Set the Gradle Java toolchain to 25.

  • The project has no Gradle wrapper, and this environment cannot run Gradle to produce the JAR.

Updated build.gradle to use the Java 25 toolchain. I couldn’t generate the JAR here because the project has no Gradle wrapper and Gradle isn’t available in this environment.

With JDK 25 and Gradle installed, run gradle build; the plugin JAR will be in build/libs/.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
settings.gradle
Code
11 292
src/main/java/com/voidfall/altarforge/AltarForgePlugin.java
package com.voidfall.altarforge;

import org.bukkit.plugin.java.JavaPlugin;

public final class AltarForgePlugin extends JavaPlugin {
    private ForgeManager forgeManager;
    private CooldownManager cooldownManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        forgeManager = new ForgeManager(this);
        cooldownManager = new CooldownManager(this);
        getCommand("altar").setExecutor(new AltarCommand(this));
        getCommand("altar").setTabCompleter(new AltarTabCompleter());
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);
        getLogger().info("AltarForge v6.0.0 enabled.");
        getLogger().info("Crafting/forge framework loaded; weapon definitions are config-driven.");
    }

    @Override
    public void onDisable() {
        if (forgeManager != null) forgeManager.shutdown();
        if (cooldownManager != null) cooldownManager.shutdown();
    }

    public ForgeManager getForgeManager() { return forgeManager; }
    public CooldownManager getCooldownManager() { return cooldownManager; }
}