From 1cb159ed64c4f385ce5ff8852f38ff1ffd0ee05b Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 28 Jul 2019 13:06:48 +0100 Subject: [PATCH] Add code style Maven plugins --- formatter-profiles.xml | 354 +++++++++++++++++++++++++++++++++++++++++ pom.xml | 43 +++++ 2 files changed, 397 insertions(+) create mode 100644 formatter-profiles.xml diff --git a/formatter-profiles.xml b/formatter-profiles.xml new file mode 100644 index 00000000..030b4895 --- /dev/null +++ b/formatter-profiles.xml @@ -0,0 +1,354 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index 609643b4..544f9ffc 100644 --- a/pom.xml +++ b/pom.xml @@ -85,6 +85,16 @@ + + net.revelc.code + impsort-maven-plugin + 1.3.0 + + + net.revelc.code.formatter + formatter-maven-plugin + 2.10.0 + org.apache.maven.plugins maven-antrun-plugin @@ -148,6 +158,39 @@ + + net.revelc.code + impsort-maven-plugin + + java.,javax.,* + * + true + true + + + + sort-imports + + sort + + + + + + net.revelc.code.formatter + formatter-maven-plugin + + ${session.executionRootDirectory}/formatter-profiles.xml + + + + format + + format + + + + org.apache.maven.plugins maven-compiler-plugin