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:49 am 1

Plan:

  1. Change the Gradle Java toolchain from 21 to 25.

  2. Keep the configured output name AltarForge-v6.jar.

  3. The project environment has no Gradle build runner, so I can’t generate or attach the compiled JAR here.

Updated build.gradle to use Java 25. I couldn’t generate the JAR because this environment has no Gradle build runner.

Run gradle clean build from the project directory; the configured output will be build/libs/AltarForge-v6.jar. The server must run Java 25 to load a Java 25-compiled plugin.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
settings.gradle
Code
14 693
src/main/java/com/altarforge/v6/AltarForge.java
package com.altarforge.v6;

import com.altarforge.v6.commands.AltarCommand;
import com.altarforge.v6.gui.MenuManager;
import com.altarforge.v6.listener.AltarListener;
import com.altarforge.v6.service.*;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class AltarForge extends JavaPlugin {
    private WeaponRegistry registry; private DataStore dataStore; private MenuManager menus; private ForgeManager forges; private AltarListener listener;
    @Override public void onEnable(){saveDefaultConfig();dataStore=new DataStore(this);dataStore.load();registry=new WeaponRegistry(this);registry.load();registry.registerRecipes();menus=new MenuManager(this,registry);forges=new ForgeManager(this,registry);listener=new AltarListener(this);Bukkit.getPluginManager().registerEvents(listener,this);AltarCommand command=new AltarCommand(this);getCommand("altar").setExecutor(command);getCommand("altar").setTabCompleter(command);Bukkit.getScheduler().runTaskTimer(this,listener::tickHud,2,2);getLogger().info("AltarForge v6 enabled with "+registry.all().size()+" configured entries.");}
    @Override public void onDisable(){if(forges!=null)forges.cancelAll();if(dataStore!=null)dataStore.save();}
    public WeaponRegistry getRegistry(){return registry;} public DataStore getDataStore(){return dataStore;} public MenuManager getMenus(){return menus;} public ForgeManager getForges(){return forges;}
}