Repository: mina-sshd Updated Branches: refs/heads/master 640d1d4a4 -> e834e893c
[SSHD-724] Added javac-errorprone profile that activates the ErrorProne static analyzer Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/e834e893 Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/e834e893 Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/e834e893 Branch: refs/heads/master Commit: e834e893c23e153d1deab325d26e92f06dcea11d Parents: 640d1d4 Author: Goldstein Lyor <l...@c-b4.com> Authored: Tue Dec 27 13:45:15 2016 +0200 Committer: Goldstein Lyor <l...@c-b4.com> Committed: Tue Dec 27 13:45:15 2016 +0200 ---------------------------------------------------------------------- pom.xml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/e834e893/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 8b192f7..a720c75 100644 --- a/pom.xml +++ b/pom.xml @@ -150,6 +150,35 @@ </plugins> </build> </profile> + <profile> + <id>javac-errorprone</id> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <compilerId>javac-with-errorprone</compilerId> + <forceJavacCompilerUse>true</forceJavacCompilerUse> + <showWarnings>true</showWarnings> + </configuration> + <dependencies> + <dependency> + <groupId>org.codehaus.plexus</groupId> + <artifactId>plexus-compiler-javac-errorprone</artifactId> + <version>2.8.1</version> + </dependency> + <!-- override plexus-compiler-javac-errorprone's dependency on Error Prone with the latest version --> + <dependency> + <groupId>com.google.errorprone</groupId> + <artifactId>error_prone_core</artifactId> + <version>2.0.15</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + </profile> </profiles> <dependencyManagement> @@ -733,7 +762,7 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> - <version>3.5.1</version> + <version>3.6.0</version> <configuration> <source>${javac.source}</source> <target>${javac.target}</target>