Skip to content

Commit

Permalink
Move spotless to a profile so it can be disabled (#5365)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricWittmann authored Oct 18, 2024
1 parent c86311b commit 9463831
Showing 1 changed file with 62 additions and 52 deletions.
114 changes: 62 additions & 52 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1116,58 +1116,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${version.spotless}</version>
<configuration>
<formats>
<format>
<includes>
<include>*.md</include>
<include>.gitignore</include>
</includes>
<trimTrailingWhitespace/>
<endWithNewline/>
<indent>
<spaces>true</spaces>
<spacesPerTab>2</spacesPerTab>
</indent>
</format>
</formats>
<java>
<includes>
<include>**/src/main/java/**/*.java</include>
<include>**/src/test/java/**/*.java</include>
</includes>
<eclipse>
<file>${projectRoot}/ide-config/eclipse-format.xml</file>
</eclipse>
<importOrder>
<file>${projectRoot}/ide-config/eclipse.importorder</file>
</importOrder>
<removeUnusedImports/>
<toggleOffOn/>
</java>
<pom>
<includes>
<include>**/pom.xml</include>
</includes>
<sortPom>
<expandEmptyElements>false</expandEmptyElements>
</sortPom>
</pom>
</configuration>
<executions>
<execution>
<id>format</id>
<goals>
<goal>check</goal>
</goals>
<phase>process-sources</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand All @@ -1187,6 +1135,68 @@
<module>integration-tests</module>
</modules>
</profile>
<profile>
<id>spotless</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>${version.spotless}</version>
<configuration>
<formats>
<format>
<includes>
<include>*.md</include>
<include>.gitignore</include>
</includes>
<trimTrailingWhitespace/>
<endWithNewline/>
<indent>
<spaces>true</spaces>
<spacesPerTab>2</spacesPerTab>
</indent>
</format>
</formats>
<java>
<includes>
<include>**/src/main/java/**/*.java</include>
<include>**/src/test/java/**/*.java</include>
</includes>
<eclipse>
<file>${projectRoot}/ide-config/eclipse-format.xml</file>
</eclipse>
<importOrder>
<file>${projectRoot}/ide-config/eclipse.importorder</file>
</importOrder>
<removeUnusedImports/>
<toggleOffOn/>
</java>
<pom>
<includes>
<include>**/pom.xml</include>
</includes>
<sortPom>
<expandEmptyElements>false</expandEmptyElements>
</sortPom>
</pom>
</configuration>
<executions>
<execution>
<id>format</id>
<goals>
<goal>check</goal>
</goals>
<phase>process-sources</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>examples</id>
<modules>
Expand Down

0 comments on commit 9463831

Please sign in to comment.