Skip to content

Commit

Permalink
#1281: Use formatter-maven-plugin to check file are well formatted.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Jul 13, 2022
1 parent 848db99 commit 4788b51
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build-config/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,21 @@ Contributors:
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<configuration>
<configFile>${project.basedir}/../eclipse/eclipse-code-style.xml</configFile>
<lineEnding>${leshan.lineEnding}</lineEnding>
</configuration>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
Expand Down
7 changes: 7 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ Contributors:
<leshan.encoding>UTF-8</leshan.encoding>
<project.build.sourceEncoding>${leshan.encoding}</project.build.sourceEncoding>
<project.reporting.outputEncoding>${leshan.encoding}</project.reporting.outputEncoding>
<leshan.lineEnding>LF</leshan.lineEnding>

<!-- we use properties for version when there are used more than once -->
<!-- dependencies version -->
Expand Down Expand Up @@ -271,6 +272,12 @@ Contributors:
<artifactId>flatten-maven-plugin</artifactId>
<version>1.2.7</version>
</plugin>
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<!-- stuck to 2.16.0 for java8 compatibility -->
<version>2.16.0</version>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
Expand Down

0 comments on commit 4788b51

Please sign in to comment.