Skip to content
Docs Try Aspire
Docs Try

withGradleTask

Method
📦 CommunityToolkit.Aspire.Hosting.Java v13.4.0
interface JavaAppExecutableResource {
// ... omitted for brevity
withGradleTask(
task: string,
args: string[]): JavaAppExecutableResource;
}

Signature

method withGradleTask builder
Configures the Java application to run using a Gradle task
withGradleTask(
task: string,
args: string[]): JavaAppExecutableResource
task string
args string[]
JavaAppExecutableResource

Applies to

This method applies to the following types: