mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-11-13 05:19:59 +00:00
28e3ffe978
- Bundle Javadoc and APIs using gradle instead of deploy.sh - Bump Gradle to 4.3, significantly improving compile times.
22 lines
510 B
Bash
Executable File
22 lines
510 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Building with gradle..."
|
|
rm -rf build/libs
|
|
rm -rf build/resources
|
|
rm -rf build/classes
|
|
chmod -R +rw src/main/resources
|
|
chmod +x gradlew
|
|
./gradlew build
|
|
|
|
echo "Deleting old deployment..."
|
|
rm -rf deploy
|
|
mkdir deploy
|
|
|
|
echo "Making new deployment..."
|
|
INPUTJAR=`ls -1 build/libs | grep -v sources`
|
|
OUTPUTJAR=`ls -1 build/libs | grep -v sources | sed s/\-//g`
|
|
FRIENDLYNAME=`ls -1 build/libs | grep -v sources | sed s/\-/\ /g | sed s/\.jar//g`
|
|
cp build/libs/$INPUTJAR deploy/$OUTPUTJAR
|
|
|
|
echo "Done."
|