summaryrefslogtreecommitdiffstats
path: root/buildhelpers
diff options
context:
space:
mode:
authorLeif Åstrand <legioth@gmail.com>2017-02-01 11:09:04 +0200
committerIlia Motornyi <elmot@vaadin.com>2017-02-01 11:09:04 +0200
commit07d56a9ca050d976dec4f598ed39471ae369c588 (patch)
tree167982734c11fa76b39cfad226b8f601174da17a /buildhelpers
parent601de7e3ba5af6146ab0342bf3a924c9aa08a1b4 (diff)
downloadvaadin-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 'buildhelpers')
-rw-r--r--buildhelpers/pom.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/buildhelpers/pom.xml b/buildhelpers/pom.xml
index 4b238df73e..3ddd27917b 100644
--- a/buildhelpers/pom.xml
+++ b/buildhelpers/pom.xml
@@ -36,6 +36,14 @@
</dependencies>
<build>
+ <resources>
+ <!-- Include eclipse formatting settings in the jar to make them available
+ as a dependency for all submodules -->
+ <resource>
+ <directory>${project.basedir}/../eclipse</directory>
+ <targetPath>eclipse</targetPath>
+ </resource>
+ </resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>