Skip to content

Commit 61ca565

Browse files
committed
chore: update some Maven plugins to allow build with JDK17
1 parent 1996b82 commit 61ca565

File tree

8 files changed

+39
-11
lines changed

8 files changed

+39
-11
lines changed

aws-serverless-java-container-core/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
<plugin>
111111
<groupId>org.jacoco</groupId>
112112
<artifactId>jacoco-maven-plugin</artifactId>
113-
<version>0.8.6</version>
114113
<configuration>
115114
<destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
116115
<dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>

aws-serverless-java-container-jersey/pom.xml

-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
<plugin>
108108
<groupId>org.jacoco</groupId>
109109
<artifactId>jacoco-maven-plugin</artifactId>
110-
<version>0.8.6</version>
111110
<configuration>
112111
<destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
113112
<dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>
@@ -160,7 +159,6 @@
160159
<plugin>
161160
<groupId>com.github.spotbugs</groupId>
162161
<artifactId>spotbugs-maven-plugin</artifactId>
163-
<version>4.2.0</version>
164162
<executions>
165163
<!--
166164
Ensures that SpotBug inspects source code when project is compiled.

aws-serverless-java-container-spark/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
<plugin>
4141
<groupId>org.jacoco</groupId>
4242
<artifactId>jacoco-maven-plugin</artifactId>
43-
<version>0.8.6</version>
4443
<configuration>
4544
<destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
4645
<dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>

aws-serverless-java-container-spring/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@
155155
<plugin>
156156
<groupId>org.jacoco</groupId>
157157
<artifactId>jacoco-maven-plugin</artifactId>
158-
<version>0.8.6</version>
159158
<configuration>
160159
<destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
161160
<dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>

aws-serverless-java-container-springboot2/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@
173173
<plugin>
174174
<groupId>org.jacoco</groupId>
175175
<artifactId>jacoco-maven-plugin</artifactId>
176-
<version>0.8.6</version>
177176
<configuration>
178177
<destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
179178
<dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>

aws-serverless-java-container-struts/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@
107107
<plugin>
108108
<groupId>org.jacoco</groupId>
109109
<artifactId>jacoco-maven-plugin</artifactId>
110-
<version>0.8.6</version>
111110
<configuration>
112111
<destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile>
113112
<dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile>

pom.xml

+11-4
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
<properties>
8383
<jacoco.minCoverage>0.7</jacoco.minCoverage>
84-
<dependencyCheck.version>7.1.0</dependencyCheck.version>
84+
<dependencyCheck.version>7.3.0</dependencyCheck.version>
8585
<jackson.version>2.13.4</jackson.version>
8686
<slf4j.version>2.0.2</slf4j.version>
8787
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -178,7 +178,7 @@
178178
<plugin>
179179
<groupId>com.github.spotbugs</groupId>
180180
<artifactId>spotbugs-maven-plugin</artifactId>
181-
<version>4.2.0</version>
181+
<version>4.7.3.0</version>
182182
<configuration>
183183
<!--
184184
Enables analysis which takes more memory but finds more bugs.
@@ -188,20 +188,27 @@
188188
<effort>Max</effort>
189189
<!-- Reports all bugs (other values are medium and max) -->
190190
<threshold>Low</threshold>
191+
<!-- Only fail the build if high confidence bugs are found -->
192+
<failThreshold>High</failThreshold>
191193
<!-- Produces XML report -->
192194
<xmlOutput>true</xmlOutput>
193195
<!-- Configures the directory in which the XML report is created -->
194196
<spotbugsXmlOutputDirectory>${project.build.directory}/spotbugs</spotbugsXmlOutputDirectory>
195-
197+
<excludeFilterFile>${session.executionRootDirectory}/spotbugs-excludeFilter.xml</excludeFilterFile>
196198
<plugins>
197199
<plugin>
198200
<groupId>com.h3xstream.findsecbugs</groupId>
199201
<artifactId>findsecbugs-plugin</artifactId>
200-
<version>1.7.1</version>
202+
<version>1.12.0</version>
201203
</plugin>
202204
</plugins>
203205
</configuration>
204206
</plugin>
207+
<plugin>
208+
<groupId>org.jacoco</groupId>
209+
<artifactId>jacoco-maven-plugin</artifactId>
210+
<version>0.8.8</version>
211+
</plugin>
205212
</plugins>
206213
</pluginManagement>
207214
</build>

spotbugs-excludeFilter.xml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Licensed to the Apache Software Foundation (ASF) under one
4+
~ or more contributor license agreements. See the NOTICE file
5+
~ distributed with this work for additional information
6+
~ regarding copyright ownership. The ASF licenses this file
7+
~ to you under the Apache License, Version 2.0 (the
8+
~ "License"); you may not use this file except in compliance
9+
~ with the License. You may obtain a copy of the License at
10+
~
11+
~ http://www.apache.org/licenses/LICENSE-2.0
12+
~
13+
~ Unless required by applicable law or agreed to in writing,
14+
~ software distributed under the License is distributed on an
15+
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
~ KIND, either express or implied. See the License for the
17+
~ specific language governing permissions and limitations
18+
~ under the License.
19+
-->
20+
<FindBugsFilter>
21+
<!-- https://github.com/spotbugs/spotbugs/issues/1601 -->
22+
<Match>
23+
<Bug pattern="EI_EXPOSE_REP"/>
24+
</Match>
25+
<Match>
26+
<Bug pattern="EI_EXPOSE_REP2"/>
27+
</Match>
28+
</FindBugsFilter>

0 commit comments

Comments
 (0)