Install Branchline¶
This guide gets Branchline running locally so you can execute programs from the CLI or IDE. All commands use the Gradle wrapper—avoid system Gradle.
Prerequisites¶
- JDK (use Gradle toolchains if not installed globally).
- Node.js (required for the JS CLI and playground development).
- Git, bash/zsh, and internet access for dependency downloads on first run.
Clone and verify toolchain¶
git clone https://github.com/ehlyzov/branchline-public.git
cd branchline-public
./gradlew --version # checks JDK/toolchain
./gradlew :cli:runBl --help # confirms CLI wiring
JVM CLI¶
- Run a script:
- Compile to bytecode:
- Execute bytecode on the VM:
- XML input: add
--input-format xml.
Node CLI¶
- Run with the Node runtime:
- Package a distributable tarball:
Verify with a tiny program¶
Create hello.bl:
hello.json:
Expected output:
Troubleshooting¶
- JDK missing or wrong version: install one or enable Gradle toolchains; rerun
./gradlew --version. - Node not found: install Node 18+ for JS CLI and playground dev.
- Gradle daemon issues:
./gradlew --stopthen retry. - Proxy/SSL errors: ensure corporate proxy settings are configured for Gradle.
Next: follow First steps to learn the language and try more examples.