You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by bi...@apache.org on 2017/11/17 06:51:52 UTC

kylin git commit: KYLIN-2924 enable error-prone tool for compile

Repository: kylin
Updated Branches:
  refs/heads/master 683f4510a -> 77b367e40


KYLIN-2924 enable error-prone tool for compile


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/77b367e4
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/77b367e4
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/77b367e4

Branch: refs/heads/master
Commit: 77b367e40a70a8b1b3cab7f914cb415e86208d27
Parents: 683f451
Author: Billy Liu <bi...@apache.org>
Authored: Fri Nov 17 14:51:28 2017 +0800
Committer: Billy Liu <bi...@apache.org>
Committed: Fri Nov 17 14:51:41 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/kylin/blob/77b367e4/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index c85974a..52891fe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1205,7 +1205,28 @@
                             <fork>true</fork>
                             <meminitial>1024m</meminitial>
                             <maxmem>2048m</maxmem>
+                            <compilerId>javac-with-errorprone</compilerId>
+                            <forceJavacCompilerUse>true</forceJavacCompilerUse>
+                            <showWarnings>true</showWarnings>
+                            <source>7</source>
+                            <target>7</target>
+                            <compilerArgs>
+                                <arg>-XepAllErrorsAsWarnings</arg>
+                                <arg>-XepDisableWarningsInGeneratedCode</arg>
+                            </compilerArgs>
                         </configuration>
+                        <dependencies>
+                            <dependency>
+                                <groupId>org.codehaus.plexus</groupId>
+                                <artifactId>plexus-compiler-javac-errorprone</artifactId>
+                                <version>2.8</version>
+                            </dependency>
+                            <dependency>
+                                <groupId>com.google.errorprone</groupId>
+                                <artifactId>error_prone_core</artifactId>
+                                <version>2.1.1</version>
+                            </dependency>
+                        </dependencies>
                     </plugin>
 
                     <plugin>
@@ -1311,7 +1332,28 @@
                             <fork>true</fork>
                             <meminitial>1024m</meminitial>
                             <maxmem>2048m</maxmem>
+                            <compilerId>javac-with-errorprone</compilerId>
+                            <forceJavacCompilerUse>true</forceJavacCompilerUse>
+                            <showWarnings>true</showWarnings>
+                            <source>7</source>
+                            <target>7</target>
+                            <compilerArgs>
+                                <arg>-XepAllErrorsAsWarnings</arg>
+                                <arg>-XepDisableWarningsInGeneratedCode</arg>
+                            </compilerArgs>
                         </configuration>
+                        <dependencies>
+                            <dependency>
+                                <groupId>org.codehaus.plexus</groupId>
+                                <artifactId>plexus-compiler-javac-errorprone</artifactId>
+                                <version>2.8</version>
+                            </dependency>
+                            <dependency>
+                                <groupId>com.google.errorprone</groupId>
+                                <artifactId>error_prone_core</artifactId>
+                                <version>2.1.1</version>
+                            </dependency>
+                        </dependencies>
                     </plugin>
 
                     <plugin>