Skip to content

Commit

Permalink
Avoid eager creation of rest test tasks (#92855) (#92858)
Browse files Browse the repository at this point in the history
The standard Gradle `withType()` method that takes an action is the
"legacy" API which realizes tasks eagerly. To avoid this, we need to
explicitly use `configureEach()` to pass our configuration action.
  • Loading branch information
mark-vieira committed Jan 12, 2023
1 parent aaca234 commit a997714
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void apply(Project project) {

});

project.getTasks().withType(StandaloneRestIntegTestTask.class, task -> {
project.getTasks().withType(StandaloneRestIntegTestTask.class).configureEach(task -> {
SystemPropertyCommandLineArgumentProvider nonInputSystemProperties = task.getExtensions()
.getByType(SystemPropertyCommandLineArgumentProvider.class);

Expand Down

0 comments on commit a997714

Please sign in to comment.