You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by hu...@apache.org on 2022/03/01 10:31:37 UTC

[plc4x] branch develop updated: Revert "fix(plc4j): Bumped minimum java compiler version to 11"

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

hutcheb pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 0b9ed23  Revert "fix(plc4j): Bumped minimum java compiler version to 11"
0b9ed23 is described below

commit 0b9ed23e22983d9a4126e368c50045e198084705
Author: Ben Hutcheson <be...@gmail.com>
AuthorDate: Tue Mar 1 20:31:06 2022 +1000

    Revert "fix(plc4j): Bumped minimum java compiler version to 11"
    
    This reverts commit a19ce13f30fcb87f7621bd6c4e9d44f9c3983178.
---
 plc4j/pom.xml | 27 ++++++++++++++++++++++++++-
 pom.xml       |  5 ++++-
 2 files changed, 30 insertions(+), 2 deletions(-)

diff --git a/plc4j/pom.xml b/plc4j/pom.xml
index 5dcbeeb..482c9ad 100644
--- a/plc4j/pom.xml
+++ b/plc4j/pom.xml
@@ -159,7 +159,10 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
         <configuration>
-          <release>11</release>
+          <source>1.8</source>
+          <target>1.8</target>
+          <testSource>1.8</testSource>
+          <testTarget>1.8</testTarget>
         </configuration>
       </plugin>
 
@@ -262,6 +265,28 @@
         </executions>
       </plugin>
 
+      <!-- Ensure the generated output classes are compatible with Java 1.8 -->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>animal-sniffer-maven-plugin</artifactId>
+        <version>1.20</version>
+        <executions>
+          <execution>
+            <id>animal-sniffer</id>
+            <phase>verify</phase>
+            <goals>
+              <goal>check</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <signature>
+            <groupId>org.codehaus.mojo.signature</groupId>
+            <artifactId>java18</artifactId>
+            <version>1.0</version>
+          </signature>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
 
diff --git a/pom.xml b/pom.xml
index 2ef21b4..377b5e4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1159,7 +1159,10 @@
           <artifactId>maven-compiler-plugin</artifactId>
           <version>3.10.0</version>
           <configuration>
-            <release>${java.version}</release>
+            <source>${java.version}</source>
+            <target>${java.version}</target>
+            <testSource>${java.version}</testSource>
+            <testTarget>${java.version}</testTarget>
           </configuration>
         </plugin>