diff --git a/compiler/tests-common-new/build.gradle.kts b/compiler/tests-common-new/build.gradle.kts index 71751c43f44..b174a20e1c3 100644 --- a/compiler/tests-common-new/build.gradle.kts +++ b/compiler/tests-common-new/build.gradle.kts @@ -56,6 +56,23 @@ projectTest(jUnit5Enabled = true) { maxHeapSize = "3g" useJUnitPlatform() + + doFirst { + systemProperty( + "JDK_9", + project.getToolchainLauncherFor(JdkMajorVersion.JDK_9).get().metadata.installationPath.asFile.absolutePath + ) + + systemProperty( + "JDK_15_0", + project.getToolchainLauncherFor(JdkMajorVersion.JDK_15).get().metadata.installationPath.asFile.absolutePath + ) + + systemProperty( + "JDK_17_0", + project.getToolchainLauncherFor(JdkMajorVersion.JDK_17).get().metadata.installationPath.asFile.absolutePath + ) + } } testsJar()