From 3c4cd99237b89c5f3c448bcf4911914d7303440c Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 3 Sep 2019 17:00:26 +0200 Subject: [PATCH] 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 bb03cdf5d0c22179af4633b32100bef266f531f6. --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index 0cd3dfaedcf..c644591a491 100644 --- a/build.gradle +++ b/build.gradle @@ -347,6 +347,8 @@ configure([rootProject] + javaProjects) { project -> testRuntime("org.apache.logging.log4j:log4j-core") testRuntime("org.apache.logging.log4j:log4j-slf4j-impl") testRuntime("org.apache.logging.log4j:log4j-jul") + // Hamcrest is needed at test runtime by third-party libraries + testRuntime("org.hamcrest:hamcrest") // JSR-305 only used for non-required meta-annotations compileOnly("com.google.code.findbugs:jsr305") testCompileOnly("com.google.code.findbugs:jsr305")