Skip to content
DocsTry Aspire
DocsTry

JavaAppExecutableResource.withGradleTask

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

Signature

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

Defined on

This method is defined on the following type: