@echo off echo === Building RadioDJ-TunaBridge === REM Clean previous build mvn clean REM Compile and package the JAR mvn package IF %ERRORLEVEL% NEQ 0 ( echo ❌ Build failed. pause exit /b %ERRORLEVEL% ) REM Copy final JAR to top-level folder (optional) IF EXIST target\radiodj-tuna-bridge-1.0-SNAPSHOT.jar ( copy target\radiodj-tuna-bridge-1.0-SNAPSHOT.jar radiodj-tuna-bridge.jar >nul echo ✅ Build complete. Output: radiodj-tuna-bridge.jar ) ELSE ( echo ❌ JAR not found! ) pause