Browse Source

Increase the maximum heap size that's available to test tasks

Closes gh-45288
pull/45292/head
Andy Wilkinson 8 months ago
parent
commit
1d2fbb2f9c
  1. 4
      buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java

4
buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java

@ -73,7 +73,7 @@ import org.springframework.util.StringUtils; @@ -73,7 +73,7 @@ import org.springframework.util.StringUtils;
* <li>{@link Test} tasks are configured:
* <ul>
* <li>to use JUnit Platform
* <li>with a max heap of 1024M
* <li>with a max heap of 1536M
* <li>to run after any Checkstyle and format checking tasks
* <li>to enable retries with a maximum of three attempts when running on CI
* <li>to use predictive test selection when the value of the
@ -186,7 +186,7 @@ class JavaConventions { @@ -186,7 +186,7 @@ class JavaConventions {
private void configureTestConventions(Project project) {
project.getTasks().withType(Test.class, (test) -> {
test.useJUnitPlatform();
test.setMaxHeapSize("1024M");
test.setMaxHeapSize("1536M");
project.getTasks().withType(Checkstyle.class, test::mustRunAfter);
project.getTasks().withType(CheckFormat.class, test::mustRunAfter);
configureTestRetries(test);

Loading…
Cancel
Save