Skip to content

Commit 3c4cd99

Browse files
committed
Reintroduce Hamcrest as a global test runtime dependency
Prior to this commit, tests in spring-web and spring-webflux were no longer executed due to the removal of the Hamcrest dependency in commit bb03cdf.
1 parent 1c5b949 commit 3c4cd99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ configure([rootProject] + javaProjects) { project ->
347347
testRuntime("org.apache.logging.log4j:log4j-core")
348348
testRuntime("org.apache.logging.log4j:log4j-slf4j-impl")
349349
testRuntime("org.apache.logging.log4j:log4j-jul")
350+
// Hamcrest is needed at test runtime by third-party libraries
351+
testRuntime("org.hamcrest:hamcrest")
350352
// JSR-305 only used for non-required meta-annotations
351353
compileOnly("com.google.code.findbugs:jsr305")
352354
testCompileOnly("com.google.code.findbugs:jsr305")

0 commit comments

Comments
 (0)