# GradleBuildResource Constructors

- Package: [CommunityToolkit.Aspire.Hosting.Java](/reference/api/csharp/communitytoolkit.aspire.hosting.java.md)
- Type: [GradleBuildResource](/reference/api/csharp/communitytoolkit.aspire.hosting.java/gradlebuildresource.md)
- Kind: `Constructors`
- Members: `1`

A resource that represents a Gradle build step.

## GradleBuildResource(string, string, string)

- Name: `Constructor(string, string, string)`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/blob/d9dc6fc02412d7398c5722840513d99965a6e98f/src/CommunityToolkit.Aspire.Hosting.Java/GradleBuildResource.cs#L10)

A resource that represents a Gradle build step.

```csharp
public class GradleBuildResource
{
    public GradleBuildResource(
        string name,
        string wrapperScript,
        string workingDirectory)
    {
        // ...
    }
}
```

## Parameters

- `name` (`string`)
  The name of the resource.
- `wrapperScript` (`string`)
  The full path to the Gradle wrapper script.
- `workingDirectory` (`string`)
  The working directory to use for the command.
