Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

withGradleTask

Method
📦 Aspire.Hosting.Java v13.6.0-preview.1.26478.8
interface JavaAppResource {
// ... omitted for brevity
withGradleTask(
task: string,
args: string[]): JavaAppResource;
}

Signature

methodwithGradleTaskbuilder
Launches the Java application through a Gradle task instead of `java`, for example `bootRun`.
withGradleTask(
task: string,
args: string[]): JavaAppResource
taskstring
argsstring[]
JavaAppResource

Applies to

This method applies to the following types: