# withGradleBuild

- Module: [CommunityToolkit.Aspire.Hosting.Java](/reference/api/typescript/communitytoolkit.aspire.hosting.java.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

Adds a Gradle build step to the Java application

## Definition

```typescript
interface JavaAppExecutableResource {
  // ... omitted for brevity
  withGradleBuild(args: string[]): JavaAppExecutableResource
}
```

## Parameters

- `args` (`string[]`)

## Returns

[JavaAppExecutableResource](/reference/api/typescript/communitytoolkit.aspire.hosting.java/javaappexecutableresource.md) `builder`

## Applies to

- [JavaAppExecutableResource](/reference/api/typescript/communitytoolkit.aspire.hosting.java/javaappexecutableresource.md)
