Skip to content

Commit

Permalink
Use pluginManagement section, redirect test output to file
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jun 26, 2024
1 parent 88ce159 commit d978d05
Showing 1 changed file with 27 additions and 18 deletions.
45 changes: 27 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,24 +194,33 @@ under the License.
</dependencies>

<build>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<java>
<includes>
<include>src/**/*.java</include>
</includes>
</java>
<pom>
<includes>
<include>**/pom.xml</include>
</includes>
</pom>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
<configuration>
<java>
<includes>
<include>src/**/*.java</include>
</includes>
</java>
<pom>
<includes>
<include>**/pom.xml</include>
</includes>
</pom>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
Expand Down

0 comments on commit d978d05

Please sign in to comment.