|
132 | 132 |
|
133 | 133 | <properties> |
134 | 134 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
135 | | - <version.jmh>1.23</version.jmh> |
| 135 | + <version.jmh>1.28</version.jmh> |
| 136 | + <!-- Note: powermock v2.0.8 doesn't exist. v2.0.9+ requires mockito-core v3+, which requires Java 8 --> |
136 | 137 | <version.powermock>2.0.7</version.powermock> |
137 | | - <version.spotbugs>4.2.0</version.spotbugs> |
138 | | - |
139 | | - <!-- Upgrading to 3.0.0-M3+ causes this test case error: |
140 | | - org.owasp.esapi.reference.DefaultValidatorInputStringAPITest.getValidInputNullAllowedPassthrough Time elapsed: 2.057 s <<< ERROR! |
141 | | - java.lang.OutOfMemoryError: PermGen space |
142 | | - when running tests with Java 7 on Mac OS X. No problems observed on Linux. |
143 | | - --> |
144 | | - <version.surefire>3.0.0-M2</version.surefire> |
| 138 | + <version.spotbugs>4.2.2</version.spotbugs> |
| 139 | + <version.spotbugs.maven>4.2.2</version.spotbugs.maven> |
| 140 | + <version.surefire>3.0.0-M5</version.surefire> |
145 | 141 | </properties> |
146 | 142 |
|
147 | 143 | <dependencies> |
|
235 | 231 | </dependency> |
236 | 232 | <dependency> |
237 | 233 | <groupId>org.apache-extras.beanshell</groupId> |
238 | | - <artifactId>bsh</artifactId> |
239 | | - <version>2.0b6</version> |
| 234 | + <artifactId>bsh</artifactId> |
| 235 | + <version>2.0b6</version> |
240 | 236 | </dependency> |
241 | 237 | <dependency> |
242 | 238 | <groupId>org.owasp.antisamy</groupId> |
|
248 | 244 | <artifactId>slf4j-api</artifactId> |
249 | 245 | <version>1.7.30</version> |
250 | 246 | </dependency> |
251 | | - |
252 | | - <!-- |
253 | | - FORCE SPECIFIC VERSIONS OF TRANSITIVE DEPENDENCIES EXCLUDED ABOVE. |
254 | | - This is to force patched versions of these libraries with known CVEs against them. |
255 | | - --> |
256 | | - <dependency> |
257 | | - <groupId>commons-io</groupId> |
258 | | - <artifactId>commons-io</artifactId> |
259 | | - <!-- Note: commons-io:2.7+ require Java 8, so can't upgrade past 2.6 --> |
260 | | - <version>2.6</version> |
261 | | - </dependency> |
262 | | - <dependency> |
263 | | - <groupId>org.apache.xmlgraphics</groupId> |
264 | | - <artifactId>batik-css</artifactId> |
265 | | - <version>1.14</version> |
266 | | - <exclusions> |
267 | | - <exclusion> |
268 | | - <groupId>commons-io</groupId> |
269 | | - <artifactId>commons-io</artifactId> |
270 | | - </exclusion> |
271 | | - <exclusion> |
272 | | - <groupId>commons-logging</groupId> |
273 | | - <artifactId>commons-logging</artifactId> |
274 | | - </exclusion> |
275 | | - </exclusions> |
276 | | - </dependency> |
277 | | - <dependency> |
278 | | - <groupId>xalan</groupId> |
279 | | - <artifactId>xalan</artifactId> |
280 | | - <version>2.7.2</version> |
281 | | - <exclusions> |
282 | | - <exclusion> |
283 | | - <groupId>xml-apis</groupId> |
284 | | - <artifactId>xml-apis</artifactId> |
285 | | - </exclusion> |
286 | | - </exclusions> |
287 | | - </dependency> |
288 | 247 | <dependency> |
289 | 248 | <groupId>xml-apis</groupId> |
290 | 249 | <artifactId>xml-apis</artifactId> |
291 | 250 | <version>1.4.01</version> |
292 | 251 | </dependency> |
293 | 252 |
|
| 253 | + <!-- |
| 254 | + FORCE SPECIFIC VERSIONS OF TRANSITIVE DEPENDENCIES EXCLUDED ABOVE. |
| 255 | + This is to force patched versions of these libraries with known CVEs against them. |
| 256 | + --> |
| 257 | + |
| 258 | + <!-- No forced upgrades required currently --> |
| 259 | + |
294 | 260 | <!-- SpotBugs dependencies --> |
295 | 261 | <dependency> |
296 | 262 | <groupId>com.github.spotbugs</groupId> |
297 | 263 | <artifactId>spotbugs-annotations</artifactId> |
298 | 264 | <version>${version.spotbugs}</version> |
299 | 265 | <optional>true</optional> |
300 | 266 | </dependency> |
301 | | - <dependency> |
302 | | - <groupId>net.jcip</groupId> |
303 | | - <artifactId>jcip-annotations</artifactId> |
304 | | - <version>1.0</version> |
305 | | - <optional>true</optional> |
306 | | - </dependency> |
307 | 267 |
|
308 | 268 | <!-- Dependencies which are ONLY used for JUnit tests --> |
| 269 | + <dependency> |
| 270 | + <groupId>commons-codec</groupId> |
| 271 | + <artifactId>commons-codec</artifactId> |
| 272 | + <version>1.15</version> |
| 273 | + <scope>test</scope> |
| 274 | + </dependency> |
309 | 275 | <dependency> |
310 | 276 | <groupId>junit</groupId> |
311 | 277 | <artifactId>junit</artifactId> |
312 | | - <version>4.13.1</version> |
| 278 | + <version>4.13.2</version> |
313 | 279 | <scope>test</scope> |
314 | 280 | </dependency> |
315 | 281 | <dependency> |
|
318 | 284 | <version>1.68</version> |
319 | 285 | <scope>test</scope> |
320 | 286 | </dependency> |
| 287 | + <dependency> |
| 288 | + <groupId>org.hamcrest</groupId> |
| 289 | + <artifactId>hamcrest-core</artifactId> |
| 290 | + <version>1.3</version> |
| 291 | + <scope>test</scope> |
| 292 | + </dependency> |
321 | 293 | <!-- https://mvnrepository.com/artifact/org.powermock/powermock-api-mockito --> |
322 | 294 | <dependency> |
323 | 295 | <groupId>org.powermock</groupId> |
|
351 | 323 | <version>2.28.2</version> |
352 | 324 | <scope>test</scope> |
353 | 325 | </dependency> |
| 326 | + <dependency> |
| 327 | + <groupId>org.powermock</groupId> |
| 328 | + <artifactId>powermock-core</artifactId> |
| 329 | + <version>${version.powermock}</version> |
| 330 | + <scope>test</scope> |
| 331 | + <exclusions> |
| 332 | + <exclusion> |
| 333 | + <!-- We exclude this here, because we import the version we need above, and this imports a newer version. --> |
| 334 | + <groupId>org.javassist</groupId> |
| 335 | + <artifactId>javassist</artifactId> |
| 336 | + </exclusion> |
| 337 | + </exclusions> |
| 338 | + </dependency> |
354 | 339 | <dependency> |
355 | 340 | <groupId>org.powermock</groupId> |
356 | 341 | <artifactId>powermock-module-junit4</artifactId> |
|
389 | 374 | <version>${version.jmh}</version> |
390 | 375 | <scope>test</scope> |
391 | 376 | </dependency> |
392 | | - <dependency> |
393 | | - <groupId>org.openjdk.jmh</groupId> |
394 | | - <artifactId>jmh-generator-annprocess</artifactId> |
395 | | - <version>${version.jmh}</version> |
396 | | - <scope>test</scope> |
397 | | - </dependency> |
398 | 377 | </dependencies> |
399 | 378 |
|
400 | 379 | <build> |
|
419 | 398 | </pluginManagement> |
420 | 399 |
|
421 | 400 | <plugins> |
| 401 | + <plugin> |
| 402 | + <groupId>com.github.spotbugs</groupId> |
| 403 | + <artifactId>spotbugs-maven-plugin</artifactId> |
| 404 | + <version>${version.spotbugs.maven}</version> |
| 405 | + <dependencies> |
| 406 | + <!-- Overwrite dependency on SpotBugs if you want to specify the version of SpotBugs. |
| 407 | + SpotBugs itself is frequently several versions ahead of the spotbugs-maven-plugin --> |
| 408 | + <dependency> |
| 409 | + <groupId>com.github.spotbugs</groupId> |
| 410 | + <artifactId>spotbugs</artifactId> |
| 411 | + <version>${version.spotbugs}</version> |
| 412 | + </dependency> |
| 413 | + </dependencies> |
| 414 | + </plugin> |
| 415 | + |
422 | 416 | <plugin> |
423 | 417 | <groupId>net.sourceforge.maven-taglib</groupId> |
424 | 418 | <artifactId>maven-taglib-plugin</artifactId> |
|
622 | 616 | <plugin> |
623 | 617 | <groupId>org.apache.maven.plugins</groupId> |
624 | 618 | <artifactId>maven-pmd-plugin</artifactId> |
625 | | - <version>3.13.0</version> |
| 619 | + <version>3.14.0</version> |
626 | 620 | </plugin> |
627 | 621 |
|
628 | 622 | <plugin> |
629 | 623 | <groupId>org.apache.maven.plugins</groupId> |
630 | 624 | <artifactId>maven-project-info-reports-plugin</artifactId> |
631 | | - <version>3.1.0</version> |
| 625 | + <version>3.1.1</version> |
632 | 626 | </plugin> |
633 | 627 |
|
634 | 628 | <plugin> |
635 | 629 | <groupId>org.apache.maven.plugins</groupId> |
636 | 630 | <artifactId>maven-resources-plugin</artifactId> |
637 | | - <version>3.1.0</version> |
| 631 | + <version>3.2.0</version> |
638 | 632 | </plugin> |
639 | 633 |
|
640 | 634 | <plugin> |
|
689 | 683 | <plugin> |
690 | 684 | <groupId>org.codehaus.mojo</groupId> |
691 | 685 | <artifactId>versions-maven-plugin</artifactId> |
692 | | - <version>2.7</version> |
| 686 | + <version>2.8.1</version> |
693 | 687 | </plugin> |
694 | 688 |
|
695 | 689 | <plugin> |
|
701 | 695 | <plugin> |
702 | 696 | <groupId>org.owasp</groupId> |
703 | 697 | <artifactId>dependency-check-maven</artifactId> |
704 | | - <version>5.3.2</version> |
| 698 | + <version>6.1.3</version> |
705 | 699 | <configuration> |
706 | 700 | <failBuildOnCVSS>5.0</failBuildOnCVSS> |
707 | 701 | <suppressionFiles>./suppressions.xml</suppressionFiles> |
|
829 | 823 | <plugin> |
830 | 824 | <groupId>com.github.spotbugs</groupId> |
831 | 825 | <artifactId>spotbugs-maven-plugin</artifactId> |
832 | | - <version>${version.spotbugs}</version> |
833 | 826 | <configuration> |
834 | 827 | <plugins> |
835 | 828 | <plugin> |
|
0 commit comments