Skip to content

Commit 1d2fbb2

Browse files
committed
Increase the maximum heap size that's available to test tasks
Closes gh-45288
1 parent ef11a08 commit 1d2fbb2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
* <li>{@link Test} tasks are configured:
7474
* <ul>
7575
* <li>to use JUnit Platform
76-
* <li>with a max heap of 1024M
76+
* <li>with a max heap of 1536M
7777
* <li>to run after any Checkstyle and format checking tasks
7878
* <li>to enable retries with a maximum of three attempts when running on CI
7979
* <li>to use predictive test selection when the value of the
@@ -186,7 +186,7 @@ private String determineImplementationTitle(Project project, Set<String> sourceJ
186186
private void configureTestConventions(Project project) {
187187
project.getTasks().withType(Test.class, (test) -> {
188188
test.useJUnitPlatform();
189-
test.setMaxHeapSize("1024M");
189+
test.setMaxHeapSize("1536M");
190190
project.getTasks().withType(Checkstyle.class, test::mustRunAfter);
191191
project.getTasks().withType(CheckFormat.class, test::mustRunAfter);
192192
configureTestRetries(test);

0 commit comments

Comments
 (0)