You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2021/09/26 22:23:35 UTC

[maven-help-plugin] 02/02: Revert "[MPH-181] Require Java 8"

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

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-help-plugin.git

commit 4aa8512a15b8f413289e07f57ac6e1c45677eb33
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sun Sep 26 17:02:42 2021 +0200

    Revert "[MPH-181] Require Java 8"
    
    This reverts commit f296e479065f590252bcc2db9ebf03cb0ae31c79.
---
 pom.xml | 27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 4b28d4b..142d159 100644
--- a/pom.xml
+++ b/pom.xml
@@ -68,7 +68,7 @@
   </distributionManagement>
 
   <properties>
-    <javaVersion>8</javaVersion>
+    <javaVersion>7</javaVersion>
     <mavenVersion>3.1.1</mavenVersion>
     <mavenPluginToolsVersion>3.6.1</mavenPluginToolsVersion>
     <surefire.version>2.22.2</surefire.version>
@@ -178,7 +178,7 @@
     <dependency>
       <groupId>org.apache.commons</groupId>
       <artifactId>commons-lang3</artifactId>
-      <version>3.12.0</version>
+      <version>3.8.1</version> <!-- commons-lang3 > 3.8.1 requires at least Java 8 -->
     </dependency>
 
     <!-- test -->
@@ -203,7 +203,7 @@
     <dependency>
       <groupId>org.mockito</groupId>
       <artifactId>mockito-core</artifactId>
-      <version>3.12.4</version>
+      <version>2.28.2</version>
       <scope>test</scope>
     </dependency>
   </dependencies>
@@ -235,6 +235,27 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>enforce-bytecode-version</id>
+            <configuration>
+              <rules>
+                <!--
+                  ! Added the following ignores cause our target is JDK 7 
+                  ! The given classes are JDK 8 compiled.
+                -->
+                <enforceBytecodeVersion combine.children="append">
+                  <ignoreClasses>
+                    <ignoreClass>com.thoughtworks.xstream.converters.reflection.LambdaConverter</ignoreClass>
+                    <ignoreClass>com.thoughtworks.xstream.mapper.LambdaMapper</ignoreClass>
+                    <ignoreClass>com.thoughtworks.xstream.converters.time.*</ignoreClass>
+                    <ignoreClass>com.thoughtworks.xstream.core.util.ISO8601JavaTimeConverter</ignoreClass>
+                  </ignoreClasses>
+                </enforceBytecodeVersion>
+              </rules>
+            </configuration>
+          </execution>
+        </executions>
       </plugin>
       <!-- unpack old Maven core sources for maven.mdo model to be able to generate xpp3-extended-writer when not yet provided by Maven core -->
       <plugin>