Permalink
Browse files

googlejavaformat now requires Java 1.8+, so only try and format the c…

…ode if using a recent JDK.
  • Loading branch information...
bramp committed Apr 1, 2017
1 parent 13fa4c2 commit 4985ba3ab3ef84839bc0f4ca8b63573b77e33c67
Showing with 15 additions and 16 deletions.
  1. +15 −16 pom.xml
31 pom.xml
@@ -329,19 +329,6 @@
</configuration>
</plugin>
<plugin>
<!-- mvn com.coveo:fmt-maven-plugin:format -->
<groupId>com.coveo</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
@@ -551,13 +538,26 @@
<profiles>
<profile>
<id>errorprone</id>
<!-- googlejavaformat and errorprone requires Java 8 -->
<id>java18</id>
<activation>
<!-- errorprone requires Java 8 -->
<jdk>1.8</jdk>
</activation>
<build>
<plugins>
<plugin>
<!-- mvn com.coveo:fmt-maven-plugin:format -->
<groupId>com.coveo</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@@ -567,7 +567,6 @@
<showWarnings>true</showWarnings>
<compilerArgs>
<arg>-Xlint:all</arg>
<!--arg>-Werror</arg-->
</compilerArgs>
</configuration>
<dependencies>

0 comments on commit 4985ba3

Please sign in to comment.