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 19:12:05 UTC

[plc4x] branch develop updated: chore(plc4j): Now using compiler-plugin -> release instead of animal sniffer

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 2b08083  chore(plc4j): Now using compiler-plugin -> release instead of animal sniffer
2b08083 is described below

commit 2b080838819287a32a346ba4046ca416ce68c931
Author: Ben Hutcheson <be...@gmail.com>
AuthorDate: Wed Mar 2 05:10:25 2022 +1000

    chore(plc4j): Now using compiler-plugin -> release instead of animal sniffer
---
 plc4j/drivers/bacnet/pom.xml |  9 +-------
 plc4j/pom.xml                | 51 +++++++++++++++++++-------------------------
 pom.xml                      |  6 ++----
 3 files changed, 25 insertions(+), 41 deletions(-)

diff --git a/plc4j/drivers/bacnet/pom.xml b/plc4j/drivers/bacnet/pom.xml
index ad06dda..42c9f2e 100644
--- a/plc4j/drivers/bacnet/pom.xml
+++ b/plc4j/drivers/bacnet/pom.xml
@@ -50,14 +50,7 @@
           </execution>
         </executions>
       </plugin>
-        <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-compiler-plugin</artifactId>
-            <configuration>
-                <source>11</source>
-                <target>11</target>
-            </configuration>
-        </plugin>
+
     </plugins>
   </build>
 
diff --git a/plc4j/pom.xml b/plc4j/pom.xml
index 482c9ad..43c2fa1 100644
--- a/plc4j/pom.xml
+++ b/plc4j/pom.xml
@@ -158,12 +158,28 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
-        <configuration>
-          <source>1.8</source>
-          <target>1.8</target>
-          <testSource>1.8</testSource>
-          <testTarget>1.8</testTarget>
-        </configuration>
+        <executions>
+          <execution>
+            <id>compile</id>
+            <phase>compile</phase>
+            <goals>
+              <goal>compile</goal>
+            </goals>
+            <configuration>
+              <release>8</release>
+            </configuration>
+          </execution>
+          <execution>
+            <id>test-compile</id>
+            <phase>test-compile</phase>
+            <goals>
+              <goal>testCompile</goal>
+            </goals>
+            <configuration>
+              <release>11</release>
+            </configuration>
+          </execution>
+        </executions>
       </plugin>
 
       <!--
@@ -264,29 +280,6 @@
           </execution>
         </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 377b5e4..027b0bb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1154,15 +1154,13 @@
           <version>0.8.7</version>
         </plugin>
 
+
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
           <version>3.10.0</version>
           <configuration>
-            <source>${java.version}</source>
-            <target>${java.version}</target>
-            <testSource>${java.version}</testSource>
-            <testTarget>${java.version}</testTarget>
+            <release>${java.version}</release>
           </configuration>
         </plugin>