-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·30 lines (23 loc) · 756 Bytes
/
build.sh
File metadata and controls
executable file
·30 lines (23 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -e
echo "Building Eclipse Formatter CLI..."
# Download gradle wrapper if needed
if [ ! -f "gradle/wrapper/gradle-wrapper.jar" ]; then
echo "Downloading Gradle wrapper..."
mkdir -p gradle/wrapper
curl -L -o gradle/wrapper/gradle-wrapper.jar https://repo.maven.apache.org/maven2/org/gradle/wrapper/gradle-wrapper/8.5/gradle-wrapper-8.5.jar
fi
# Make gradlew executable
chmod +x gradlew
# Build the project
./gradlew build
# Create executable JAR
./gradlew shadowJar
echo ""
echo "Build complete!"
echo "Executable JAR: build/libs/eclipse-format.jar"
echo ""
echo "Usage:"
echo " java -jar build/libs/eclipse-format.jar --help"
echo " chmod +x build/libs/eclipse-format.jar"
echo " ./build/libs/eclipse-format.jar --help"