|
81 | 81 |
|
82 | 82 | <build> |
83 | 83 | <plugins> |
| 84 | + |
| 85 | + <plugin> |
| 86 | + <groupId>org.apache.maven.plugins</groupId> |
| 87 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 88 | + <version>${checkstyle-plugin.version}</version> |
| 89 | + <configuration> |
| 90 | + <failOnViolation>true</failOnViolation> |
| 91 | + <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 92 | + <sourceDirectories> |
| 93 | + <directory>${project.basedir}/src/main/java</directory> |
| 94 | + <directory>${project.basedir}/src/main/scala</directory> |
| 95 | + </sourceDirectories> |
| 96 | + <testSourceDirectories> |
| 97 | + <directory>${project.basedir}/src/test/java</directory> |
| 98 | + </testSourceDirectories> |
| 99 | + <suppressionsLocation>${maven.multiModuleProjectDirectory}/../../dev/checkstyle-suppressions.xml</suppressionsLocation> |
| 100 | + <configLocation>${maven.multiModuleProjectDirectory}/../../dev/checkstyle.xml</configLocation> |
| 101 | + <outputFile>${project.basedir}/target/checkstyle-output.xml</outputFile> |
| 102 | + <inputEncoding>UTF-8</inputEncoding> |
| 103 | + <outputEncoding>UTF-8</outputEncoding> |
| 104 | + </configuration> |
| 105 | + <dependencies> |
| 106 | + <dependency> |
| 107 | + <groupId>com.puppycrawl.tools</groupId> |
| 108 | + <artifactId>checkstyle</artifactId> |
| 109 | + <version>8.29</version> |
| 110 | + </dependency> |
| 111 | + </dependencies> |
| 112 | + <executions> |
| 113 | + <execution> |
| 114 | + <goals> |
| 115 | + <goal>check</goal> |
| 116 | + </goals> |
| 117 | + <phase>validate</phase> |
| 118 | + </execution> |
| 119 | + </executions> |
| 120 | + </plugin> |
| 121 | + |
| 122 | + <plugin> |
| 123 | + <groupId>org.scalastyle</groupId> |
| 124 | + <artifactId>scalastyle-maven-plugin</artifactId> |
| 125 | + <version>${maven.plugin.scalastyle.version}</version> |
| 126 | + <configuration> |
| 127 | + <verbose>false</verbose> |
| 128 | + <failOnViolation>true</failOnViolation> |
| 129 | + <includeTestSourceDirectory>false</includeTestSourceDirectory> |
| 130 | + <failOnWarning>false</failOnWarning> |
| 131 | + <sourceDirectory>${basedir}/src/main/scala</sourceDirectory> |
| 132 | + <testSourceDirectory>${basedir}/src/test/scala</testSourceDirectory> |
| 133 | + <configLocation>${maven.multiModuleProjectDirectory}/../../dev/scalastyle-config.xml</configLocation> |
| 134 | + <outputFile>${basedir}/target/scalastyle-output.xml</outputFile> |
| 135 | + <inputEncoding>${project.build.sourceEncoding}</inputEncoding> |
| 136 | + <outputEncoding>${project.reporting.outputEncoding}</outputEncoding> |
| 137 | + </configuration> |
| 138 | + <executions> |
| 139 | + <execution> |
| 140 | + <goals> |
| 141 | + <goal>check</goal> |
| 142 | + </goals> |
| 143 | + <phase>validate</phase> |
| 144 | + </execution> |
| 145 | + </executions> |
| 146 | + </plugin> |
| 147 | + |
84 | 148 | <!-- spotless --> |
85 | 149 | <plugin> |
86 | 150 | <groupId>com.diffplug.spotless</groupId> |
|
0 commit comments