38 references to WithGradleTask
Aspire.Hosting.Java (3)
JavaHostingExtensions.cs (3)
65
/// <see cref="
WithGradleTask
{T}(IResourceBuilder{T}, string, string[])"/> to run the application through a build tool,
776
/// When the application launches with <see cref="
WithGradleTask
{T}(IResourceBuilder{T}, string, string[])"/>,
782
/// use <see cref="
WithGradleTask
{T}(IResourceBuilder{T}, string, string[])"/> instead.
Aspire.Hosting.Java.Tests (35)
AddJavaAppPublishTests.cs (10)
39
configureResource: app => app.
WithGradleTask
("bootRun"));
82
configureResource: app => app.
WithGradleTask
("bootRun"));
1213
var app = builder.AddJavaApp("api", appDirectory.Path).
WithGradleTask
("bootRun").WithGradleBuild("bootJar");
1387
: app.
WithGradleTask
("bootRun"))
1438
: app.
WithGradleTask
("bootRun");
1973
configureResource: app => app.
WithGradleTask
("bootRun"));
1989
configureResource: app => app.
WithGradleTask
("bootRun"));
2039
configureResource: app => app.
WithGradleTask
("bootRun"));
2050
configureResource: app => app.
WithGradleTask
("bootRun"));
2120
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();