diff options
author | Keong Lim <keong.lim@huawei.com> | 2019-02-28 15:41:43 +1100 |
---|---|---|
committer | Keong Lim <keong.lim@huawei.com> | 2019-02-28 15:41:43 +1100 |
commit | d10ed9c6c4b0aa9b8cda3997af3c1dccd784bf8f (patch) | |
tree | 49d1b9850c15dc296739db5b414ccb0ebafc9724 /pom.xml | |
parent | c3231a8cc1c0f82a8863e760f999b5ba6c449563 (diff) |
AAI-2198 Consistent code style in traversal
Add plugins to traversal/pom.xml
Add Eclipse formatter configuration file
Change-Id: Ie1a6e3a320cae053bb5f309b39459d0f71cdb6d7
Issue-ID: AAI-2198
Signed-off-by: Keong Lim <keong.lim@huawei.com>
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 33 |
1 files changed, 33 insertions, 0 deletions
@@ -30,6 +30,39 @@ <build> <pluginManagement> <plugins> + <!-- + Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter + Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order + Use in combination to rewrite code and imports, then checkstyle + + mvn formatter:format spotless:apply process-sources + --> + <plugin> + <groupId>net.revelc.code.formatter</groupId> + <artifactId>formatter-maven-plugin</artifactId> + <version>2.8.1</version> + <configuration> + <configFile>${project.parent.basedir}/onap-java-formatter.xml</configFile> + </configuration> + <!-- https://code.revelc.net/formatter-maven-plugin/ + use mvn formatter:format to rewrite source files + use mvn formatter:validate to validate source files --> + </plugin> + <plugin> + <groupId>com.diffplug.spotless</groupId> + <artifactId>spotless-maven-plugin</artifactId> + <version>1.18.0</version> + <configuration> + <java> + <importOrder> + <order>com,java,javax,org</order> + </importOrder> + </java> + </configuration> + <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven + use mvn spotless:apply to rewrite source files + use mvn spotless:check to validate source files --> + </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>sonar-maven-plugin</artifactId> |