[Test] Provide path to JDK 9/15/17 via toolchains
This commit is contained in:
committed by
teamcityserver
parent
de73622af9
commit
89bd52c7d2
@@ -56,6 +56,23 @@ projectTest(jUnit5Enabled = true) {
|
|||||||
maxHeapSize = "3g"
|
maxHeapSize = "3g"
|
||||||
|
|
||||||
useJUnitPlatform()
|
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()
|
testsJar()
|
||||||
|
|||||||
Reference in New Issue
Block a user