Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithGradleBuild

Method
📦 Aspire.Hosting.Java v17.0.0-preview.1.26565.2
func (JavaAppResource) WithGradleBuild(args []string) JavaAppResource

Signature

methodWithGradleBuildbuilder
Runs a Gradle build before the Java application starts.
WithGradleBuild(args []string) JavaAppResource
args[]stringArguments passed to the Gradle wrapper. Defaults to clean build.
JavaAppResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: