Guide
Prepare your first build
Create an immutable plan, select a runtime, and handle validation errors.
Choose an entry point
Use BuildPlan.defaults(String) for a plan with no extra compiler flags. The entry point is the fully qualified class name.
var plan = BuildPlan.defaults("example.Main");Select the runtime
Construct a Planner.Local for the JVM. For fine-grained progress reporting, pass Planner.Options to the overloaded constructor.
var planner = new Planner.Local(Target.JVM);Validate the plan
Preparation returns the validated plan. A blank entry point raises PlanException before execution.
try {
var ready = planner.prepare(plan);
System.out.println(ready.mainClass());
} catch (PlanException rejected) {
System.err.println(rejected.getMessage());
}