Skip to content

Commit

Permalink
Moves the spotless plugin
Browse files Browse the repository at this point in the history
Moves the `spotless` plugin out of `<pluginManagement>`
  • Loading branch information
MaicolAntali committed Nov 4, 2023
1 parent 61fd5a2 commit 14edca8
Showing 1 changed file with 39 additions and 32 deletions.
71 changes: 39 additions & 32 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,45 @@
</execution>
</executions>
</plugin>
<!-- Spotless plugin: keeps the code formatted following the google-java-styleguide -->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.40.0</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
<configuration>
<formats>
<format>
<includes>
<include>*.md</include>
<include>.gitignore</include>
</includes>
<trimTrailingWhitespace/>
<endWithNewline/>
<indent>
<spaces>true</spaces>
<spacesPerTab>4</spacesPerTab>
</indent>
</format>
</formats>
<java>
<googleJavaFormat>
<style>GOOGLE</style>
<reflowLongStrings>true</reflowLongStrings>
<formatJavadoc>true</formatJavadoc>
</googleJavaFormat>
<importOrder />
<removeUnusedImports />
<formatAnnotations /> <!-- Puts type annotations immediately before types. -->.
</java>
</configuration>
</plugin>
</plugins>

<pluginManagement>
Expand Down Expand Up @@ -358,38 +397,6 @@
</execution>
</executions>
</plugin>
<!-- Spotless plugin: keeps the code formatted following the google-java-styleguide -->
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<version>2.40.0</version>
<configuration>
<formats>
<format>
<includes>
<include>*.md</include>
<include>.gitignore</include>
</includes>
<trimTrailingWhitespace/>
<endWithNewline/>
<indent>
<spaces>true</spaces>
<spacesPerTab>4</spacesPerTab>
</indent>
</format>
</formats>
<java>
<googleJavaFormat>
<style>GOOGLE</style>
<reflowLongStrings>true</reflowLongStrings>
<formatJavadoc>true</formatJavadoc>
</googleJavaFormat>
<importOrder />
<removeUnusedImports />
<formatAnnotations /> <!-- Puts type annotations immediately before types. -->.
</java>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit 14edca8

Please sign in to comment.