Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 4985ba3
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions pom.xml
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand All @@ -567,7 +567,6 @@
<showWarnings>true</showWarnings>
<compilerArgs>
<arg>-Xlint:all</arg>
<!--arg>-Werror</arg-->
</compilerArgs>
</configuration>
<dependencies>
Expand Down

0 comments on commit 4985ba3

Please sign in to comment.