Fixed saving the spigot API instead of the actual server file

This commit is contained in:
2025-11-15 21:14:10 -05:00
parent 6e936a6bd1
commit 4a64af1846
4 changed files with 14 additions and 13 deletions

View File

@@ -14,10 +14,9 @@ for ver in "${versions[@]}"; do
mvn -q org.apache.maven.plugins:maven-dependency-plugin:3.9.0:get -Dartifact=org.spigotmc:spigot:${ver}-R0.1-SNAPSHOT
if [ "$?" -eq 0 ]; then
ARTIFACT="spigot-${ver}.jar"
if [ "$?" -eq 0 ] && [ -e "/build/$ARTIFACT" ]; then
echo "Located spigot $ver successfully"
mvn -q org.apache.maven.plugins:maven-dependency-plugin:3.9.0:copy -Dartifact=org.spigotmc:spigot:${ver}-R0.1-SNAPSHOT -DoutputDirectory=/build
else
echo "Spigot $ver not located, building..."
if [ ! -d "${HOME}/buildtools" ]; then
@@ -29,8 +28,6 @@ for ver in "${versions[@]}"; do
java -jar BuildTools.jar --rev "$ver"
ARTIFACT="spigot-${ver}-R0.1-SNAPSHOT.jar"
mv "spigot-${ver}.jar" "$ARTIFACT"
mv "$ARTIFACT" /build
fi
done