Migrate build scripts to Gradle

This commit is contained in:
2026-09-26 22:25:23 -07:00
parent 7a5764ebe0
commit 316accff2d
3 changed files with 4 additions and 12 deletions

View File

@@ -10,7 +10,7 @@
| MET-006 | Ready | Build the initial Gradle project and run its tests; resolve build setup issues before removing the existing Maven build. | | MET-006 | Ready | Build the initial Gradle project and run its tests; resolve build setup issues before removing the existing Maven build. |
| MET-007 | Ready | Update .gitignore for Gradle and remove obsolete Maven and Eclipse project files after the Gradle build succeeds. | | MET-007 | Ready | Update .gitignore for Gradle and remove obsolete Maven and Eclipse project files after the Gradle build succeeds. |
| MET-008 | Done | Analyze Java sources for deprecated or removed Bukkit/Paper APIs and legacy patterns, including logging, event registration, configuration, player lookup, and player-keyed storage. | | MET-008 | Done | Analyze Java sources for deprecated or removed Bukkit/Paper APIs and legacy patterns, including logging, event registration, configuration, player lookup, and player-keyed storage. |
| MET-009 | Ready | Review custom scripts and resources for required updates to the Gradle build and modern Paper server workflow. | | MET-009 | Done | Review custom scripts and resources for required updates to the Gradle build and modern Paper server workflow. |
| MET-010 | Ready | Refactor plugin logging to use JavaPlugin.getLogger(). | | MET-010 | Ready | Refactor plugin logging to use JavaPlugin.getLogger(). |
| MET-011 | Ready | Refactor event listeners and registration to use Listener, @EventHandler, and the modern plugin manager API. | | MET-011 | Ready | Refactor event listeners and registration to use Listener, @EventHandler, and the modern plugin manager API. |
| MET-012 | Ready | Replace deprecated configuration APIs with the modern Bukkit/Paper configuration API, including load, save, and reload behavior. | | MET-012 | Ready | Replace deprecated configuration APIs with the modern Bukkit/Paper configuration API, including load, save, and reload behavior. |

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -e set -euo pipefail
# Find project root (one directory above this script) # Find project root (one directory above this script)
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@@ -7,8 +7,4 @@ PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
cd "$PROJECT_ROOT" cd "$PROJECT_ROOT"
if [[ -x ./mvnw ]]; then exec ./gradlew build "$@"
./mvnw package
else
mvn package
fi

View File

@@ -42,8 +42,4 @@ ensure_java_25() {
ensure_java_25 ensure_java_25
cd "$PROJECT_ROOT" cd "$PROJECT_ROOT"
if [[ -x ./mvnw ]]; then exec ./gradlew publishToMavenLocal "$@"
./mvnw install -DskipTests "$@"
else
mvn install -DskipTests "$@"
fi