09/10/2026
☕ Ship Java JARs Directly from CommandBox! 🚀
Need to compile Java and package it as a JAR? CommandBox can now handle the whole workflow without bringing in a separate build toolchain.
With the new Java Compile DSL, you can:
🔧 Compile Java sources with javac
📦 Build regular or fat JARs
📚 Generate Javadocs
⚙️ Configure manifests, resources, and classpaths
🤖 Get CI-friendly JSON output
☕ Automatically download Java 21 when needed
The best part? You can do it all from the CommandBox CLI or a fluent DSL in your task runners.
⚠️ Currently available in bx-cli beta builds.
📖 Read the full walkthrough:
https://community.ortussolutions.com/t/ship-java-jars-right-from-your-commandbox-cli/11140