8000 GitHub - AdamBien/zb: Zero Dependencies Builder
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AdamBien/zb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zb (Zero Dependencies Builder)

A lightweight Java build tool that requires zero external dependencies. Built using pure Java 21 functionality.

Duke Builder

Features

  • 🚀 Zero external dependencies
  • ⚡ Fast compilation and packaging
  • 🔍 Automatic main class detection
  • 📦 Executable JAR generation
  • 🎯 Simple and intuitive usage

Prerequisites

  • Java 21 or later
  • Git (for cloning the repository)

Installation

Build from Source

# 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

Usage

Basic Usage

# 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

Default Configuration

Parameter Default Value
Source Directory src/main/java, src or current directory
Classes Directory zbo/classes
JAR Output Directory zbo
JAR Filename app.jar

How It Works

  1. Source Discovery: Automatically finds all Java files in the source directory
  2. Main Class Detection: Identifies the main class for the executable JAR
  3. Compilation: Compiles all Java files to bytecode
  4. Packaging: Creates an executable JAR with proper manifest

About

Zero Dependencies Builder

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0