You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2024/09/12 11:56:58 UTC

(sling-parent) 01/01: SLING-12428 - Relax constraints for the highest supported Java version

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch issue/SLING-12428
in repository https://gitbox.apache.org/repos/asf/sling-parent.git

commit a43b1ab760d2873dbda7f85da54c77e656ed00ae
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu Sep 12 13:56:11 2024 +0200

    SLING-12428 - Relax constraints for the highest supported Java version
---
 sling-parent/pom.xml | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/sling-parent/pom.xml b/sling-parent/pom.xml
index e995c5d..2d4883c 100644
--- a/sling-parent/pom.xml
+++ b/sling-parent/pom.xml
@@ -101,10 +101,7 @@
 
     <!--
         To set the Java API and class file compliance modules need to set the property "sling.java.version" to
-        one of these values:
-          - 8: Java 8 
-          - 9: Java 9
-          - 10..19: Java 10-19
+        a value between 8 and 99.
     -->
 
     <properties>
@@ -278,9 +275,9 @@
                             <rules>
                                 <requireProperty>
                                     <property>sling.java.version</property>
-                                    <message>Property "sling.java.version" is required for this build and must comply with the following pattern: ^(8|9|1[0-9])$.</message>
-                                    <regex>^(8|9|1[0-9])$</regex>
-                                    <regexMessage>The value of the "sling.java.version" property must comply with the following pattern: ^(8|9|1[0-9])$.</regexMessage>
+                                    <message>Property "sling.java.version" is required for this build and must be between 8 and 99.</message>
+                                    <regex>^(8|9|[0-9]{2})$</regex>
+                                    <regexMessage>The value of the "sling.java.version" property must be between 8 and 99.</regexMessage>
                                 </requireProperty>
                             </rules>
                         </configuration>