Skip to content

Commit 42d5897

Browse files
committed
DEVX-772: fixing java version for MemoryLeakTest
1 parent f98272c commit 42d5897

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ plugins {
2424
id "srcinfo"
2525
}
2626

27+
/*
28+
dependencies {
29+
runtimeOnly 'org.springframework.boot:spring-boot-properties-migrator'
30+
}*/
31+
32+
2733
import java.text.SimpleDateFormat
2834

2935
apply plugin: 'versioning'

commercetools/commercetools-sdk-java-api/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,15 @@ tasks.register('runMainMethodThreadLeakTest', JavaExec) {
360360
classpath = sourceSets.test.runtimeClasspath
361361
mainClass = "com.commercetools.MainMethodThreadLeakTest"
362362
timeout = Duration.ofSeconds(20)
363+
javaLauncher = javaToolchains.launcherFor { languageVersion = JavaLanguageVersion.of(21) }
363364
}
364365
tasks.register('runMainMethodMemoryLeakTest', JavaExec) {
365366
group = "Execution"
366367
description = "Run the main method thread leak test class"
367368
classpath = sourceSets.test.runtimeClasspath
368369
mainClass = "com.commercetools.MainMethodMemoryLeakTest"
369370
maxHeapSize("128m")
371+
javaLauncher = javaToolchains.launcherFor { languageVersion = JavaLanguageVersion.of(21) }
370372
}
371373

372374

0 commit comments

Comments
 (0)