|
214 | 214 | </dependencyManagement> |
215 | 215 |
|
216 | 216 | <build> |
217 | | - <pluginManagement> |
218 | | - <plugins> |
219 | | - <plugin> |
220 | | - <groupId>org.apache.maven.plugins</groupId> |
221 | | - <artifactId>maven-compiler-plugin</artifactId> |
222 | | - <version>${maven-compiler-plugin.version}</version> |
223 | | - <configuration> |
224 | | - <source>${java.version}</source> |
225 | | - <target>${java.version}</target> |
226 | | - <encoding>${project.build.sourceEncoding}</encoding> |
227 | | - </configuration> |
228 | | - </plugin> |
229 | | - |
230 | | - <plugin> |
231 | | - <groupId>org.apache.maven.plugins</groupId> |
232 | | - <artifactId>maven-surefire-plugin</artifactId> |
233 | | - <version>${maven-surefire-plugin.version}</version> |
234 | | - </plugin> |
235 | | - |
236 | | - <plugin> |
237 | | - <groupId>org.apache.maven.plugins</groupId> |
238 | | - <artifactId>maven-source-plugin</artifactId> |
239 | | - <version>${maven-source-plugin.version}</version> |
240 | | - <executions> |
241 | | - <execution> |
242 | | - <id>attach-sources</id> |
243 | | - <goals> |
244 | | - <goal>jar-no-fork</goal> |
245 | | - </goals> |
246 | | - </execution> |
247 | | - </executions> |
248 | | - </plugin> |
249 | | - |
250 | | - <plugin> |
251 | | - <groupId>org.apache.maven.plugins</groupId> |
252 | | - <artifactId>maven-javadoc-plugin</artifactId> |
253 | | - <version>${maven-javadoc-plugin.version}</version> |
254 | | - <configuration> |
255 | | - <source>8</source> |
256 | | - <doclint>none</doclint> |
257 | | - </configuration> |
258 | | - <executions> |
259 | | - <execution> |
260 | | - <id>attach-javadocs</id> |
261 | | - <goals> |
262 | | - <goal>jar</goal> |
263 | | - </goals> |
264 | | - </execution> |
265 | | - </executions> |
266 | | - </plugin> |
267 | | - |
268 | | - <plugin> |
269 | | - <groupId>org.apache.maven.plugins</groupId> |
270 | | - <artifactId>maven-checkstyle-plugin</artifactId> |
271 | | - <version>${maven-checkstyle-plugin.version}</version> |
272 | | - <configuration> |
273 | | - <configLocation>checkstyle.xml</configLocation> |
274 | | - <consoleOutput>true</consoleOutput> |
275 | | - <failsOnError>false</failsOnError> |
276 | | - <linkXRef>false</linkXRef> |
277 | | - </configuration> |
278 | | - <executions> |
279 | | - <execution> |
280 | | - <id>validate</id> |
281 | | - <phase>validate</phase> |
282 | | - <goals> |
283 | | - <goal>check</goal> |
284 | | - </goals> |
285 | | - </execution> |
286 | | - </executions> |
287 | | - </plugin> |
288 | | - |
289 | | - <plugin> |
290 | | - <groupId>com.github.spotbugs</groupId> |
291 | | - <artifactId>spotbugs-maven-plugin</artifactId> |
292 | | - <version>${spotbugs-maven-plugin.version}</version> |
293 | | - <configuration> |
294 | | - <effort>Max</effort> |
295 | | - <threshold>Low</threshold> |
296 | | - <failOnError>false</failOnError> |
297 | | - </configuration> |
298 | | - <executions> |
299 | | - <execution> |
300 | | - <goals> |
301 | | - <goal>check</goal> |
302 | | - </goals> |
303 | | - </execution> |
304 | | - </executions> |
305 | | - </plugin> |
306 | | - </plugins> |
307 | | - </pluginManagement> |
| 217 | + <plugins> |
| 218 | + <plugin> |
| 219 | + <groupId>org.jacoco</groupId> |
| 220 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 221 | + <version>0.8.11</version> |
| 222 | + <configuration> |
| 223 | + <outputDirectory>${project.reporting.outputDirectory}/jacoco</outputDirectory> |
| 224 | + <formats> |
| 225 | + <format>HTML</format> |
| 226 | + <format>XML</format> |
| 227 | + <format>CSV</format> |
| 228 | + </formats> |
| 229 | + <excludes> |
| 230 | + <exclude>**/client/**/*</exclude> |
| 231 | + <exclude>**/BaseCallbackHandler.java</exclude> |
| 232 | + <exclude>**/WebsocketsChatCallbackHandler.java</exclude> |
| 233 | + <exclude>**/WebsocketsAudioTranscriptionsCallbackHandler.java</exclude> |
| 234 | + <exclude>**/WebsocketsAudioSpeechCallbackHandler.java</exclude> |
| 235 | + </excludes> |
| 236 | + </configuration> |
| 237 | + <executions> |
| 238 | + <execution> |
| 239 | + <id>prepare-agent</id> |
| 240 | + <goals> |
| 241 | + <goal>prepare-agent</goal> |
| 242 | + </goals> |
| 243 | + </execution> |
| 244 | + <execution> |
| 245 | + <id>report</id> |
| 246 | + <phase>test</phase> |
| 247 | + <goals> |
| 248 | + <goal>report</goal> |
| 249 | + </goals> |
| 250 | + </execution> |
| 251 | + <execution> |
| 252 | + <id>check</id> |
| 253 | + <goals> |
| 254 | + <goal>check</goal> |
| 255 | + </goals> |
| 256 | + <configuration> |
| 257 | + <rules> |
| 258 | + <rule> |
| 259 | + <element>BUNDLE</element> |
| 260 | + </rule> |
| 261 | + </rules> |
| 262 | + </configuration> |
| 263 | + </execution> |
| 264 | + </executions> |
| 265 | + </plugin> |
| 266 | + <plugin> |
| 267 | + <groupId>com.diffplug.spotless</groupId> |
| 268 | + <artifactId>spotless-maven-plugin</artifactId> |
| 269 | + <version>2.22.8</version> |
| 270 | + <configuration> |
| 271 | + <java> |
| 272 | + <includes> |
| 273 | + <include>src/main/java/**/*.java</include> |
| 274 | + <include>src/test/java/**/*.java</include> |
| 275 | + </includes> |
| 276 | + <googleJavaFormat> |
| 277 | + <version>1.7</version> |
| 278 | + <style>GOOGLE</style> |
| 279 | + </googleJavaFormat> |
| 280 | + <removeUnusedImports /> |
| 281 | + <endWithNewline /> |
| 282 | + <importOrder> |
| 283 | + <order>java,javax,org,com,</order> |
| 284 | + </importOrder> |
| 285 | + </java> |
| 286 | + </configuration> |
| 287 | + <executions> |
| 288 | + <execution> |
| 289 | + <id>spotless-check</id> |
| 290 | + <phase>validate</phase> |
| 291 | + <goals> |
| 292 | + <goal>check</goal> |
| 293 | + </goals> |
| 294 | + </execution> |
| 295 | + </executions> |
| 296 | + </plugin> |
| 297 | + </plugins> |
308 | 298 | </build> |
309 | 299 |
|
310 | 300 | <licenses> |
|
0 commit comments