diff --git a/libraries/pom.xml b/libraries/pom.xml
index b78d0294519..68e5298d575 100644
--- a/libraries/pom.xml
+++ b/libraries/pom.xml
@@ -299,6 +299,30 @@
${env.JDK_16}
+
+ jdk_1_7_new
+
+
+ env.JDK_1_7
+
+ true
+
+
+ ${env.JDK_1_7}
+
+
+
+ jdk_1_7_old
+
+
+ !env.JDK_1_7
+
+ true
+
+
+ ${env.JDK_17}
+
+
sign-artifacts
diff --git a/libraries/tools/kotlin-maven-plugin-test/src/it/test-customJdk/pom.xml b/libraries/tools/kotlin-maven-plugin-test/src/it/test-customJdk/pom.xml
index 061cc0ccf4b..dc1785bc017 100644
--- a/libraries/tools/kotlin-maven-plugin-test/src/it/test-customJdk/pom.xml
+++ b/libraries/tools/kotlin-maven-plugin-test/src/it/test-customJdk/pom.xml
@@ -22,7 +22,7 @@
- ${env.JDK_17}
+ ${jdk_1_7}
@@ -45,4 +45,30 @@
+
+
+ jdk_1_7_new
+
+
+ env.JDK_1_7
+
+ true
+
+
+ ${env.JDK_1_7}
+
+
+
+ jdk_1_7_old
+
+
+ !env.JDK_1_7
+
+ true
+
+
+ ${env.JDK_17}
+
+
+