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

myui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hivemall.git


The following commit(s) were added to refs/heads/master by this push:
     new d4b7ddb  Added Java API compatibility checks
d4b7ddb is described below

commit d4b7ddb67dc39607ee1078050e11ed595844b931
Author: Makoto Yui <[email protected]>
AuthorDate: Mon Mar 18 14:51:58 2019 +0900

    Added Java API compatibility checks
---
 pom.xml       | 26 ++++++++++++++++++++++++++
 spark/pom.xml |  8 ++++++++
 2 files changed, 34 insertions(+)

diff --git a/pom.xml b/pom.xml
index ec1a61d..9e8caa9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -653,6 +653,7 @@
                                                        </rules>
                                                </configuration>
                                        </execution>
+                                       <!-- Check Java class file 
compatibility to Java 7/8 -->
                                        <execution>
                                                
<id>enforce-bytecode-version</id>
                                                <goals>
@@ -679,6 +680,31 @@
                                        </dependency>
                                </dependencies>
                        </plugin>
+                       <!-- check Java API compatibility to Java 7 -->
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               
<artifactId>animal-sniffer-maven-plugin</artifactId>
+                               <version>1.14</version>
+                               <configuration>
+                                       <signature>
+                                               
<groupId>org.codehaus.mojo.signature</groupId>
+                                               <artifactId>java17</artifactId>
+                                               <version>1.0</version>
+                                       </signature>
+                                       <ignores>
+                                               <ignore>sun.misc.Unsafe</ignore>
+                                       </ignores>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               
<id>ensure-java-1.7-class-library</id>
+                                               <phase>verify</phase>
+                                               <goals>
+                                                       <goal>check</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
                        <!-- mvn spotless:apply -->
                        <plugin>
                                <groupId>com.diffplug.spotless</groupId>
diff --git a/spark/pom.xml b/spark/pom.xml
index 96a68d0..b4288c7 100644
--- a/spark/pom.xml
+++ b/spark/pom.xml
@@ -234,6 +234,14 @@
                </pluginManagement>
 
                <plugins>
+                       <!-- disable Java API compatibility checks for Spark 
modules -->
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               
<artifactId>animal-sniffer-maven-plugin</artifactId>
+                               <configuration>
+                                       <skip>true</skip>
+                               </configuration>
+                       </plugin>
                        <plugin>
                                <groupId>org.scalastyle</groupId>
                                <artifactId>scalastyle-maven-plugin</artifactId>

Reply via email to