A lightweight Java build tool that requires zero external dependencies. Built using pure Java 21 functionality.
- 🚀 Zero external dependencies
- ⚡ Fast compilation and packaging
- 🔍 Automatic main class detection
- 📦 Executable JAR generation
- 🎯 Simple and intuitive usage
- Java 21 or later
- Git (for cloning the repository)
# Clone the repository
git clone https://github.com/AdamBien/zb.git
cd zb
# Build with Maven
mvn clean package
# The executable JAR will be in target/zb.jar
# Copy it to your desired location
cp target/zb.jar ~/bin/zb.jar
# Compile and package with defaults
java -jar zb.jar
# Custom source directory
java -jar zb.jar src/main/java
# Custom source and output directories
java -jar zb.jar src/main/java target/classes target/jar
# Full customization (source, classes, jar directory, jar filename)
java -jar zb.jar src/main/java target/classes target/jar myapp.jar
Parameter | Default Value |
---|---|
Source Directory | src/main/java , src or current directory |
Classes Directory | zbo/classes |
JAR Output Directory | zbo |
JAR Filename | app.jar |
- Source Discovery: Automatically finds all Java files in the source directory
- Main Class Detection: Identifies the main class for the executable JAR
- Compilation: Compiles all Java files to bytecode
- Packaging: Creates an executable JAR with proper manifest