Skip to content

Commit f2d0d91

Browse files
committed
Manage maven-checkstyle-plugin configuration.
1 parent fea8c46 commit f2d0d91

1 file changed

Lines changed: 12 additions & 15 deletions

File tree

pom.xml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,18 @@ limitations under the License.
291291
</ignorePathsToDelete>
292292
</configuration>
293293
</plugin>
294+
<plugin>
295+
<groupId>org.apache.maven.plugins</groupId>
296+
<artifactId>maven-checkstyle-plugin</artifactId>
297+
<version>${checkstyle.version}</version>
298+
<configuration>
299+
<configLocation>${checkstyle.config.file}</configLocation>
300+
<enableRulesSummary>false</enableRulesSummary>
301+
<headerFile>${checkstyle.header.file}</headerFile>
302+
<includeTestSourceDirectory>true</includeTestSourceDirectory>
303+
<resourceExcludes>NOTICE.txt,LICENSE.txt,**/pom.properties,**/sha512.properties</resourceExcludes>
304+
</configuration>
305+
</plugin>
294306
</plugins>
295307
</pluginManagement>
296308
<plugins>
@@ -345,14 +357,6 @@ limitations under the License.
345357
<plugin>
346358
<groupId>org.apache.maven.plugins</groupId>
347359
<artifactId>maven-checkstyle-plugin</artifactId>
348-
<version>${checkstyle.version}</version>
349-
<configuration>
350-
<configLocation>${checkstyle.config.file}</configLocation>
351-
<enableRulesSummary>false</enableRulesSummary>
352-
<headerFile>${checkstyle.header.file}</headerFile>
353-
<includeTestSourceDirectory>true</includeTestSourceDirectory>
354-
<resourceExcludes>NOTICE.txt,LICENSE.txt,**/pom.properties,**/sha512.properties</resourceExcludes>
355-
</configuration>
356360
</plugin>
357361
<!-- Specify source for JDK 11+ javadoc tool to ignore the 'unamed' module.
358362
See: https://bugs.openjdk.java.net/browse/JDK-8212233.
@@ -381,13 +385,6 @@ limitations under the License.
381385
<plugin>
382386
<groupId>org.apache.maven.plugins</groupId>
383387
<artifactId>maven-checkstyle-plugin</artifactId>
384-
<version>${checkstyle.version}</version>
385-
<configuration>
386-
<configLocation>${checkstyle.config.file}</configLocation>
387-
<enableRulesSummary>false</enableRulesSummary>
388-
<headerFile>${checkstyle.header.file}</headerFile>
389-
<includeTestSourceDirectory>true</includeTestSourceDirectory>
390-
</configuration>
391388
<!-- We need to specify reportSets because 2.9.1 creates two reports -->
392389
<reportSets>
393390
<reportSet>

0 commit comments

Comments
 (0)