This new version uses Eclipse Luna formatter, which mean Java 8 / Lambdas support.
Here a usage example:
<plugin>
<groupId>com.marvinformatics.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>1.4.0</version>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
<configuration>
<excludes>
<exclude>**/target/**</exclude>
</excludes>
<aggregator>true</aggregator>
<lineEnding>LF</lineEnding>
</configuration>
</plugin>
great plugin, alas: it looks that unlike the original formatter plugin this clone (v1.4.0) isn't capable of loading a formatter configuration from the classpath?
ReplyDelete