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

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git

commit 5c51680bdc98f9ce7139d41b33c51a3a721986e8
Author: aherbert <[email protected]>
AuthorDate: Tue Aug 3 10:03:46 2021 +0100

    RNG-158: Update minimum Java version from 1.6 to 1.7
    
    Use the enforcer plugin to require Maven 3.3.9.
---
 commons-rng-examples/pom.xml |  3 ---
 pom.xml                      | 25 +++++++++++++++++++++++--
 src/changes/changes.xml      | 11 +++++++----
 3 files changed, 30 insertions(+), 9 deletions(-)

diff --git a/commons-rng-examples/pom.xml b/commons-rng-examples/pom.xml
index f2d51f2..49fd72b 100644
--- a/commons-rng-examples/pom.xml
+++ b/commons-rng-examples/pom.xml
@@ -35,9 +35,6 @@
   and to help ensure correctness of the implementations.</description>
 
   <properties>
-    <maven.compiler.source>1.7</maven.compiler.source>
-    <maven.compiler.target>1.7</maven.compiler.target>
-
     <!-- OSGi -->
     
<commons.osgi.symbolicName>org.apache.commons.rng.examples</commons.osgi.symbolicName>
     <commons.osgi.export>org.apache.commons.rng.examples</commons.osgi.export>
diff --git a/pom.xml b/pom.xml
index e8d2810..1dba2bb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -51,8 +51,8 @@
     <commons.jira.id>RNG</commons.jira.id>
     <commons.jira.pid>12320623</commons.jira.pid>
     <commons.encoding>UTF-8</commons.encoding>
-    <maven.compiler.source>1.6</maven.compiler.source>
-    <maven.compiler.target>1.6</maven.compiler.target>
+    <maven.compiler.source>1.7</maven.compiler.source>
+    <maven.compiler.target>1.7</maven.compiler.target>
     <rng.clirr.version>2.8</rng.clirr.version>
     <rng.pmd.version>3.14.0</rng.pmd.version>
     <rng.pmd.dep.version>6.37.0</rng.pmd.dep.version>
@@ -144,6 +144,27 @@
   <build>
     <defaultGoal>clean verify javadoc:javadoc</defaultGoal>
     <plugins>
+      <!-- Ensure maven is compatible with the plugins -->
+      <plugin>
+        <inherited>true</inherited>
+        <artifactId>maven-enforcer-plugin</artifactId>
+        <configuration>
+          <rules>
+            <requireMavenVersion>
+              <version>3.3.9</version>
+            </requireMavenVersion>
+          </rules>
+          <fail>true</fail>
+        </configuration>
+        <executions>
+          <execution>
+            <id>enforce-maven-3</id>
+            <goals>
+              <goal>enforce</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 40abceb..aafb456 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -57,10 +57,10 @@ If the output is not quite correct, check for invisible 
trailing spaces!
 This is a minor release of Apache Commons RNG, containing a
 few new features and performance improvements.
 Apache Commons RNG 1.4 contains the following library modules:
-  commons-rng-client-api (requires Java 6)
-  commons-rng-core (requires Java 6)
-  commons-rng-simple (requires Java 6)
-  commons-rng-sampling (requires Java 6)
+  commons-rng-client-api (requires Java 7)
+  commons-rng-core (requires Java 7)
+  commons-rng-simple (requires Java 7)
+  commons-rng-sampling (requires Java 7)
 The code in module 'commons-rng-core' should not be accessed
 directly by applications as a future release might make use of
 the JPMS modularization feature available in Java 11+.
@@ -81,6 +81,9 @@ re-run tests that fail, and pass the build if they succeed
 within the allotted number of reruns (the test will be marked
 as 'flaky' in the report).
 ">
+      <action dev="aherbert" type="update" issue="158">
+        Update the minimum Java version to 1.7.
+      </action>
       <action dev="aherbert" type="add" issue="156">
         New "DirichletSampler" class to sample from a Dirichlet distribution.
       </action>

Reply via email to