From 19283c92459aef68cdfe738fd8bdf17b49597058 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 7 Sep 2021 11:32:28 +0200 Subject: [PATCH] Avoid accidental dependency on older version of Byte Buddy This commit allows Mockito-based tests in spring-test to work again in Eclipse IDE. This problem was uncovered while fixing gh-27365 --- spring-test/spring-test.gradle | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/spring-test/spring-test.gradle b/spring-test/spring-test.gradle index 1223fdff57..e27977c1af 100644 --- a/spring-test/spring-test.gradle +++ b/spring-test/spring-test.gradle @@ -30,8 +30,12 @@ dependencies { optional("org.hamcrest:hamcrest") optional("org.apache.taglibs:taglibs-standard-jstlel") optional("net.sourceforge.htmlunit:htmlunit") - optional("org.seleniumhq.selenium:htmlunit-driver") - optional("org.seleniumhq.selenium:selenium-java") + optional("org.seleniumhq.selenium:htmlunit-driver") { + exclude group: "net.bytebuddy", module: "byte-buddy" + } + optional("org.seleniumhq.selenium:selenium-java") { + exclude group: "net.bytebuddy", module: "byte-buddy" + } optional("org.xmlunit:xmlunit-matchers") optional("org.skyscreamer:jsonassert") optional("com.jayway.jsonpath:json-path")