Wednesday, June 25, 2014

Maven formatter plugin now supports Java 8

Just release maven-formatter-plugin 1.4.0.

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>


Go for it!

Eclipse Luna + AJDT

You may or may not know, but Eclipse Luna is already out on the mirrors.

Still, if you are using AspectJ and wanna add Java 8 / lambdas to the mix there is no public update site for AJDT version compatible with Eclipse Luna.

Poking around I found the dev update site:
http://download.eclipse.org/tools/ajdt/44/dev/update/

Hope it helps!