Repository: calcite
Updated Branches:
  refs/heads/master fb8ebd315 -> 75048ff34


[CALCITE-2207] Enforce minimum JDK 8 via maven-enforcer-plugin (Kevin Risden)

Close apache/calcite#648


Project: http://git-wip-us.apache.org/repos/asf/calcite/repo
Commit: http://git-wip-us.apache.org/repos/asf/calcite/commit/75048ff3
Tree: http://git-wip-us.apache.org/repos/asf/calcite/tree/75048ff3
Diff: http://git-wip-us.apache.org/repos/asf/calcite/diff/75048ff3

Branch: refs/heads/master
Commit: 75048ff346c839f00d6c6a8a4949f38a3e697a83
Parents: d134694
Author: Kevin Risden <kris...@apache.org>
Authored: Mon Mar 12 19:05:10 2018 -0500
Committer: Jesus Camacho Rodriguez <jcama...@apache.org>
Committed: Tue Mar 13 15:01:04 2018 -0700

----------------------------------------------------------------------
 pom.xml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/calcite/blob/75048ff3/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 550f413..0c5936e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -103,6 +103,7 @@ limitations under the License.
     <junit.version>4.12</junit.version>
     <maven-checkstyle-plugin.version>3.0.0</maven-checkstyle-plugin.version>
     <maven-dependency-plugin.version>2.10</maven-dependency-plugin.version>
+    <maven-enforcer-plugin.version>3.0.0-M1</maven-enforcer-plugin.version>
     <!-- Apache 18 has 3.0.1, but need 3.0.2 for [MSOURCES-94]. -->
     <maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
     <!-- Apache 18 has 2.10.3, but need 2.10.4 for [MJAVADOC-442]. -->
@@ -671,6 +672,10 @@ limitations under the License.
         </executions>
       </plugin>
       <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-enforcer-plugin</artifactId>
+      </plugin>
+      <plugin>
         <!-- This is the configuration used by "mvn javadoc:javadoc". It is
              configured strict, so that it shows errors such as broken links in
              javadoc on private methods. The configuration for "mvn site" is
@@ -785,6 +790,26 @@ limitations under the License.
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-enforcer-plugin</artifactId>
+          <version>${maven-enforcer-plugin.version}</version>
+          <executions>
+            <execution>
+              <id>enforce-java</id>
+              <goals>
+                <goal>enforce</goal>
+              </goals>
+              <configuration>
+                <rules>
+                  <requireJavaVersion>
+                    <version>[1.8,)</version>
+                  </requireJavaVersion>
+                </rules>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-failsafe-plugin</artifactId>
           <executions>
             <execution>

Reply via email to