37 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 (34)
AddJavaAppPublishTests.cs (10)
39
configureResource: app => app.
WithGradleTask
("bootRun"));
82
configureResource: app => app.
WithGradleTask
("bootRun"));
820
var app = builder.AddJavaApp("api", appDirectory.Path).
WithGradleTask
("bootRun").WithGradleBuild("bootJar");
994
: app.
WithGradleTask
("bootRun"))
1045
: app.
WithGradleTask
("bootRun");
1580
configureResource: app => app.
WithGradleTask
("bootRun"));
1596
configureResource: app => app.
WithGradleTask
("bootRun"));
1646
configureResource: app => app.
WithGradleTask
("bootRun"));
1657
configureResource: app => app.
WithGradleTask
("bootRun"));
1727
configureResource: app => app.
WithGradleTask
("bootRun"));
AddJavaAppTests.cs (23)
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");
1571
_ = tool == "maven" ? app.WithMavenGoal("spring-boot:run") : app.
WithGradleTask
("bootRun");
1615
var app = builder.AddJavaApp("orders", tempDir.Path).
WithGradleTask
("bootRun");
1716
var app = builder.AddJavaApp("orders", tempDir.Path).
WithGradleTask
("bootRun");
1731
var app = builder.AddJavaApp("orders", tempDir.Path).
WithGradleTask
("bootRun");
1751
var app = builder.AddJavaApp("apphost", tempDir.Path).
WithGradleTask
("bootRun");
AddSpringBootAppTests.cs (1)
269
app.
WithGradleTask
("bootRun").WithGradleBuild();