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/qpid-protonj2.git

commit 7899392dc8d0fff2cc0465e2672a00bd81bd39ef
Author: Robbie Gemmell <robbie.gemm...@gmail.com>
AuthorDate: Thu Apr 22 13:30:16 2021 +0100

    add enforcer check to make it clear why the build fails if run not using 
Java 11+
---
 pom.xml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/pom.xml b/pom.xml
index 1cd76c0..5921e0f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -51,6 +51,7 @@
     <!-- Plugin versions -->
     <maven.bundle.plugin.version>5.1.1</maven.bundle.plugin.version>
     <jacoco.plugin.version>0.8.6</jacoco.plugin.version>
+    <maven.enforcer.plugin.version>3.0.0-M3</maven.enforcer.plugin.version>
 
     <!-- Test properties -->
     
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
@@ -309,6 +310,26 @@
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-enforcer-plugin</artifactId>
+          <version>${maven.enforcer.plugin.version}</version>
+          <executions>
+            <execution>
+              <id>enforce-java-version</id>
+              <goals>
+                <goal>enforce</goal>
+              </goals>
+              <configuration>
+                <rules>
+                  <requireJavaVersion>
+                    <version>[11,)</version>
+                  </requireJavaVersion>
+                </rules>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-release-plugin</artifactId>
           <configuration>
             <autoVersionSubmodules>true</autoVersionSubmodules>

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to