This is an automated email from the ASF dual-hosted git repository.
robbie pushed a commit to branch activemq-5.16.x
in repository https://gitbox.apache.org/repos/asf/activemq.git
The following commit(s) were added to refs/heads/activemq-5.16.x by this push:
new e84025c AMQ-8488: make the build fail quickly and obviously if not
run on Java 8, which is required.
e84025c is described below
commit e84025c267d5d549b2b9cbe7e17eb74180dfee8c
Author: Robbie Gemmell <[email protected]>
AuthorDate: Wed Feb 16 11:01:09 2022 +0000
AMQ-8488: make the build fail quickly and obviously if not run on Java 8,
which is required.
Overrides the existing parent pom enforcer check and restricts the version
range. Updates to current plugin that works across newer versions.
---
pom.xml | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/pom.xml b/pom.xml
index ef9e344..bfe015a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -146,6 +146,7 @@
<maven-javadoc-plugin-version>3.3.1</maven-javadoc-plugin-version>
<maven-install-plugin-version>2.5.2</maven-install-plugin-version>
<maven-shade-plugin-version>3.2.4</maven-shade-plugin-version>
+ <maven-enforcer-plugin-version>3.0.0</maven-enforcer-plugin-version>
<findbugs-maven-plugin-version>3.0.1</findbugs-maven-plugin-version>
<javacc-maven-plugin-version>2.6</javacc-maven-plugin-version>
<cobertura-maven-plugin-version>2.5.2</cobertura-maven-plugin-version>
@@ -1175,6 +1176,11 @@
</configuration>
</plugin>
<plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <version>${maven-enforcer-plugin-version}</version>
+ </plugin>
+ <plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>${maven-bundle-plugin-version}</version>
@@ -1324,6 +1330,7 @@
</plugin>
</plugins>
</pluginManagement>
+
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -1479,6 +1486,26 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>enforce-java-version</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireJavaVersion>
+ <version>[1.8, 9)</version>
+ <message>You must use Java 8 to build.</message>
+ </requireJavaVersion>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
<reporting>