From 38e7563c87047033eb9208c22de1b261035caadb Mon Sep 17 00:00:00 2001 From: Giuseppe Villani Date: Tue, 21 Feb 2023 16:40:07 +0100 Subject: [PATCH] [NOID] Excluded duplicated libs in extra-dependencies (#3467) --- extra-dependencies/hadoop/build.gradle | 2 ++ extra-dependencies/selenium/build.gradle | 12 ++++++++---- extra-dependencies/xls/build.gradle | 1 - 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/extra-dependencies/hadoop/build.gradle b/extra-dependencies/hadoop/build.gradle index 024d475e7f..64e0c644e0 100644 --- a/extra-dependencies/hadoop/build.gradle +++ b/extra-dependencies/hadoop/build.gradle @@ -30,6 +30,8 @@ shadowJar { def commonExclusions = { exclude group: 'io.netty' exclude group: 'com.sun.jersey' + exclude group: 'org.slf4j' + exclude group: 'org.apache.commons', module: 'commons-compress' } dependencies { diff --git a/extra-dependencies/selenium/build.gradle b/extra-dependencies/selenium/build.gradle index 54d0b1b1a2..4ed0437e1f 100644 --- a/extra-dependencies/selenium/build.gradle +++ b/extra-dependencies/selenium/build.gradle @@ -16,10 +16,14 @@ jar { } } +def commonExclusions = { + exclude group: 'com.google.guava', module: 'guava' + exclude group: 'commons-beanutils', module: 'commons-beanutils' + exclude group: 'org.slf4j' +} + dependencies { // currently we cannot update to the latest version due to guava minimum version required (31.0.1-jre) - implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.141.59', { - exclude group: 'com.google.guava', module: 'guava' - } - implementation group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '5.1.0' + implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.141.59', commonExclusions + implementation group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '5.1.0', commonExclusions } diff --git a/extra-dependencies/xls/build.gradle b/extra-dependencies/xls/build.gradle index fd8eca33e3..6ce9f5e558 100644 --- a/extra-dependencies/xls/build.gradle +++ b/extra-dependencies/xls/build.gradle @@ -32,5 +32,4 @@ dependencies { exclude group: 'org.apache.logging.log4j' } implementation group: 'com.github.virtuald', name: 'curvesapi', version: '1.06' - implementation group: 'org.apache.commons', name: 'commons-collections4', version: '4.4' }