---
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

## API at a glance

- prepare(BuildPlan): Prepares an artifact without executing the application. Returns the prepared artifact Throws PlanException if the configuration cannot be prepared

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

Interface in [`example.runtime`](index.md).

```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)

## Methods

### prepare(BuildPlan)

```java
T prepare(BuildPlan plan) throws PlanException
```

Prepares an artifact without executing the application.

**Parameters**

- `plan` [`BuildPlan`](BuildPlan.md): the input configuration

**→ Returns** `T`: the prepared artifact

**↯ Throws**

- [`PlanException`](PlanException.md): if the configuration cannot be prepared
