[Build] Detect JDK 17 in old way using environment variables
There is a problem that toolchains can not detect JDK 17 EAP on windows agents. This commit will be reverted after JDK 17 release in adoptopenjdk.net
This commit is contained in:
committed by
teamcityserver
parent
17fc1da719
commit
fd537e7d5a
@@ -56,23 +56,6 @@ 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