From d5d4848ef916d1f965548d7a43e4abe3b6109fb8 Mon Sep 17 00:00:00 2001 From: Valery Yatsynovich Date: Thu, 28 Oct 2021 00:20:19 +0300 Subject: [PATCH] chore: revise used Selenium dependencies --- build.gradle | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index c242b1352..3b428fec7 100644 --- a/build.gradle +++ b/build.gradle @@ -23,28 +23,27 @@ java { withSourcesJar() } +ext { + seleniumVersion = project.property('selenium.version') +} + dependencies { compileOnly 'org.projectlombok:lombok:1.18.22' annotationProcessor 'org.projectlombok:lombok:1.18.22' - api ("org.seleniumhq.selenium:selenium-java") { + api ('org.seleniumhq.selenium:selenium-api') { version { - strictly "${project.property('selenium.version')}" + strictly "${seleniumVersion}" } - - exclude group: 'com.google.code.gson' - exclude module: 'htmlunit-driver' - exclude group: 'net.sourceforge.htmlunit' - } - implementation ("org.seleniumhq.selenium:selenium-support") { + api ('org.seleniumhq.selenium:selenium-remote-driver') { version { - strictly "${project.property('selenium.version')}" + strictly "${seleniumVersion}" } } - implementation ("org.seleniumhq.selenium:selenium-api") { + implementation ('org.seleniumhq.selenium:selenium-support') { version { - strictly "${project.property('selenium.version')}" + strictly "${seleniumVersion}" } } implementation 'com.google.code.gson:gson:2.8.8' @@ -62,6 +61,11 @@ dependencies { testImplementation (group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '5.0.3') { exclude group: 'org.seleniumhq.selenium' } + testImplementation ('org.seleniumhq.selenium:selenium-chrome-driver') { + version { + strictly "${seleniumVersion}" + } + } } ext { @@ -176,7 +180,7 @@ wrapper { processResources { filter ReplaceTokens, tokens: [ - 'selenium.version': project.property('selenium.version') + 'selenium.version': seleniumVersion ] }