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

robbie pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/main by this push:
     new a4b396d  AMQ-8489: make the build fail quickly and obviously if not 
run on Java 11+, which is required.
a4b396d is described below

commit a4b396db91b71e84302f74f262a146ed26a386bf
Author: Robbie Gemmell <[email protected]>
AuthorDate: Wed Feb 16 11:31:25 2022 +0000

    AMQ-8489: make the build fail quickly and obviously if not run on Java 11+, 
which is required.
    
    Overrides the existing parent pom enforcer check. Updates to current plugin 
version.
---
 pom.xml | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 3b33ef6..51641fd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -130,7 +130,7 @@
     <maven-assembly-plugin-version>3.3.0</maven-assembly-plugin-version>
     <maven-release-plugin-version>2.5.3</maven-release-plugin-version>
     <maven-eclipse-plugin-version>2.10</maven-eclipse-plugin-version>
-    <maven-enforcer-plugin-version>3.0.0-M3</maven-enforcer-plugin-version>
+    <maven-enforcer-plugin-version>3.0.0</maven-enforcer-plugin-version>
     <maven-war-plugin-version>3.2.2</maven-war-plugin-version>
     <maven-compiler-plugin-version>3.9.0</maven-compiler-plugin-version>
     <maven-jar-plugin-version>3.2.2</maven-jar-plugin-version>
@@ -1259,6 +1259,7 @@
         </plugin>
       </plugins>
     </pluginManagement>
+
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -1289,6 +1290,20 @@
               </rules>
             </configuration>
           </execution>
+          <execution>
+            <id>enforce-java-version</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+            <configuration>
+              <rules>
+                <requireJavaVersion>
+                  <version>[11,)</version>
+                  <message>You must use Java 11+ to build.</message>
+                </requireJavaVersion>
+              </rules>
+            </configuration>
+          </execution>
         </executions>
       </plugin>
       <plugin>

Reply via email to