---
title: "BuildStep"
description: "A named phase in the preparation of a BuildPlan."
kind: "interface"
id: "example.runtime.BuildStep"
module: "runtime-kit"
version: "1.0"
---

# ◇ BuildStep

[runtime-kit](../../index.md) › [example.runtime](index.md) · Every page: [llms.txt](../../llms.txt)

Interface in [`example.runtime`](index.md). Reference types generally default to non-null in this null-marked scope. [`runtime-kit.jar`](../../build-info/jvm-artifacts.html#artifact-1) · Java 17 · bytecode 61.0. [`runtime-kit.jar`](../../build-info/jvm-artifacts.html#artifact-1) · Java 21 entry · Java 21 · bytecode 65.0. [`runtime-kit.jmod`](../../build-info/jvm-artifacts.html#artifact-2) · Java 17 · bytecode 61.0. [`classes-21 (classes)`](../../build-info/jvm-artifacts.html#artifact-3) · Java 21 · bytecode 65.0.

```java
@FunctionalInterface
public interface BuildStep<T>
```

A named phase in the preparation of a [`BuildPlan`](BuildPlan.md).

**Type parameters**

- `<T>`: the artifact produced by the step

**See also**

- [Write a preparation step](../../guides/custom-step.md)
- [Feature tour](../../guides/feature-tour.md)

## Methods

### prepare(BuildPlan)
<a id="prepare(example.runtime.BuildPlan)"></a>`T prepare(BuildPlan plan) throws PlanException`. Prepares an artifact without executing the application. Cite: `example/runtime/BuildStep.html#prepare(example.runtime.BuildPlan)`
Parameters: `plan` `BuildPlan` (non-null, implied by @NullMarked on package example.runtime): the input configuration.
Returns `T` (non-null, implied by the non-null bound of T (@NullMarked on package example.runtime)): the prepared artifact.
Throws: `PlanException`: if the configuration cannot be prepared.
