Auto provide JDK_21_0 env variable to relevant tests

KTI-1229
This commit is contained in:
Nikolay Krasko
2023-05-25 21:40:33 +02:00
committed by Space Team
parent 0457001a87
commit 15825549a2
3 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ enum class JdkMajorVersion(
JDK_10_0(10, mandatory = false, overrideMajorVersion = 11),
JDK_11_0(11, mandatory = false),
JDK_16_0(16, mandatory = false),
JDK_17_0(17, mandatory = false);
JDK_17_0(17, mandatory = false),
JDK_21_0(21, mandatory = false);
fun isMandatory(): Boolean = mandatory
@@ -83,6 +83,9 @@ projectTest(
projectTest(
"jdk21Tests",
jUnitMode = JUnitMode.JUnit5,
defineJDKEnvVariables = listOf(
JdkMajorVersion.JDK_21_0
)
) {
configureTest {
includeTags("Jdk21Test")
@@ -72,6 +72,9 @@ projectTest(
projectTest(
"jdk21Tests",
jUnitMode = JUnitMode.JUnit5,
defineJDKEnvVariables = listOf(
JdkMajorVersion.JDK_21_0
)
) {
configureTest {
includeTags("Jdk21Test")