diff --git a/build.gradle.kts b/build.gradle.kts index 2b83d7d5..1bb52d42 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -102,11 +102,13 @@ tasks.withType { tasks.withType { useJUnitPlatform() - val springContextCacheMaxSize = (project.findProperty("test.springContextCacheMaxSize") as String?) ?: "1" - maxHeapSize = (project.findProperty("testMaxHeap") as String?) ?: "1536m" + val springContextCacheMaxSize = "1" + maxHeapSize = "1024m" + maxParallelForks = 1 jvmArgs( "-Dfile.encoding=UTF-8", + "-XX:+HeapDumpOnOutOfMemoryError", "-Dspring.test.context.cache.maxSize=$springContextCacheMaxSize" ) }