diff options
author | Leif Åstrand <legioth@gmail.com> | 2017-02-01 11:09:04 +0200 |
---|---|---|
committer | Ilia Motornyi <elmot@vaadin.com> | 2017-02-01 11:09:04 +0200 |
commit | 07d56a9ca050d976dec4f598ed39471ae369c588 (patch) | |
tree | 167982734c11fa76b39cfad226b8f601174da17a /pom.xml | |
parent | 601de7e3ba5af6146ab0342bf3a924c9aa08a1b4 (diff) | |
download | vaadin-framework-07d56a9ca050d976dec4f598ed39471ae369c588.tar.gz vaadin-framework-07d56a9ca050d976dec4f598ed39471ae369c588.zip |
Add a maven plugin for formatting according to Eclipse settings
Running formatter:format will format all files in a submodule using an
embedded Eclipse compiler (based on Neon SR1)
according to the regular formatting settings file.
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -486,6 +486,23 @@ <plugins> <plugin> + <groupId>com.marvinformatics.formatter</groupId> + <artifactId>formatter-maven-plugin</artifactId> + <version>1.8.1</version> + <configuration> + <configFile>classpath:/eclipse/VaadinJavaConventions.xml</configFile> + <!-- Provide a dummy JS config file to avoid errors --> + <configJsFile>classpath:/eclipse/VaadinJavaConventions.xml</configJsFile> + </configuration> + <dependencies> + <dependency> + <groupId>${project.groupId}</groupId> + <artifactId>vaadin-buildhelpers</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + </plugin> + <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-maven-plugin</artifactId> <executions> |