diff --git a/buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java b/buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java
index 73fee9d662..a99b8ba405 100644
--- a/buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java
+++ b/buildSrc/src/main/java/org/springframework/boot/build/JavaConventions.java
@@ -73,7 +73,7 @@ import org.springframework.util.StringUtils;
*
{@link Test} tasks are configured:
*
* - to use JUnit Platform
- *
- with a max heap of 1024M
+ *
- with a max heap of 1536M
*
- to run after any Checkstyle and format checking tasks
*
- to enable retries with a maximum of three attempts when running on CI
*
- to use predictive test selection when the value of the
@@ -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);