example.runtime
Plans Java applications for a local JVM or native executable.
Preparing a build
Start with BuildPlan.defaults(String), select a Target, and pass the plan to Planner.Local. Preparation validates configuration before a compiler is invoked.
Extending a build
Implement BuildStep to transform a plan into another artifact. Report invalid input with PlanException.
Interfaces
public interface BuildStepA named phase in the preparation of a
BuildPlan.
Classes
public abstract sealed class PlannerValidates a
BuildPlanbefore handing it to aBuildStep.public static final class .LocalPrepares builds against a locally installed toolchain.
public record .Options(…)Configuration for
Local, including how to report progress.
Records
public record BuildPlan(…)Describes how to build a Java application as a native executable.
Enums
public enum TargetSelects the runtime that will consume a
BuildPlan.
Exceptions
public final class PlanExceptionIndicates that a
BuildPlancannot be prepared.
Annotations
public @interface ExperimentalMarks a runtime API whose contract may evolve before the next release.