38 references to WithGradleTask
Aspire.Hosting.Java (3)
JavaHostingExtensions.cs (3)
62
/// <see cref="
WithGradleTask
{T}(IResourceBuilder{T}, string, string[])"/> to run the application through a build tool,
773
/// When the application launches with <see cref="
WithGradleTask
{T}(IResourceBuilder{T}, string, string[])"/>,
779
/// use <see cref="
WithGradleTask
{T}(IResourceBuilder{T}, string, string[])"/> instead.
Aspire.Hosting.Java.Tests (35)
AddJavaAppPublishTests.cs (10)
37
configureResource: app => app.
WithGradleTask
("bootRun"));
80
configureResource: app => app.
WithGradleTask
("bootRun"));
1211
var app = builder.AddJavaApp("api", appDirectory.Path).
WithGradleTask
("bootRun").WithGradleBuild("bootJar");
1385
: app.
WithGradleTask
("bootRun"))
1436
: app.
WithGradleTask
("bootRun");
1971
configureResource: app => app.
WithGradleTask
("bootRun"));
1987
configureResource: app => app.
WithGradleTask
("bootRun"));
2037
configureResource: app => app.
WithGradleTask
("bootRun"));
2048
configureResource: app => app.
WithGradleTask
("bootRun"));
2118
configureResource: app => app.
WithGradleTask
("bootRun"));
AddJavaAppTests.cs (24)
56
var app = builder.AddJavaApp("api", tempDir.Path).
WithGradleTask
("bootRun", "--no-daemon");
270
var action = () => builder.
WithGradleTask
("bootRun");
283
var nullAction = () => app.
WithGradleTask
(null!);
284
var emptyAction = () => app.
WithGradleTask
(string.Empty);
300
.
WithGradleTask
("bootRun");
315
.
WithGradleTask
("bootRun");
355
var app = builder.AddJavaApp("api", module).
WithGradleTask
("bootRun");
394
var app = builder.AddJavaApp("api", module).
WithGradleTask
("bootRun");
439
.
WithGradleTask
("bootRun", "--no-daemon");
455
var action = () => app.
WithGradleTask
("bootRun");
487
var action = () => app.
WithGradleTask
("bootRun");
501
var app = builder.AddJavaApp("api", tempDir.Path).
WithGradleTask
("bootRun");
566
.
WithGradleTask
("bootRun");
760
var app = builder.AddJavaApp("api", tempDir.Path).
WithGradleTask
("bootRun");
1130
app.
WithGradleTask
("bootRun");
1134
app.
WithGradleTask
("bootRun");
1290
.
WithGradleTask
("bootRun")
1345
.
WithGradleTask
("bootRun");
1454
app.
WithGradleTask
("bootRun");
1684
_ = tool == "maven" ? app.WithMavenGoal("spring-boot:run") : app.
WithGradleTask
("bootRun");
1728
var app = builder.AddJavaApp("orders", tempDir.Path).
WithGradleTask
("bootRun");
1829
var app = builder.AddJavaApp("orders", tempDir.Path).
WithGradleTask
("bootRun");
1844
var app = builder.AddJavaApp("orders", tempDir.Path).
WithGradleTask
("bootRun");
1864
var app = builder.AddJavaApp("apphost", tempDir.Path).
WithGradleTask
("bootRun");
AddSpringBootAppTests.cs (1)
269
app.
WithGradleTask
("bootRun").WithGradleBuild();