@@ -23,28 +23,27 @@ java {
2323 withSourcesJar()
2424}
2525
26+ ext {
27+ seleniumVersion = project. property(' selenium.version' )
28+ }
29+
2630dependencies {
2731 compileOnly ' org.projectlombok:lombok:1.18.22'
2832 annotationProcessor ' org.projectlombok:lombok:1.18.22'
2933
30- api (" org.seleniumhq.selenium:selenium-java " ) {
34+ api (' org.seleniumhq.selenium:selenium-api ' ) {
3135 version {
32- strictly " ${ project.property('selenium.version') } "
36+ strictly " ${ seleniumVersion } "
3337 }
34-
35- exclude group : ' com.google.code.gson'
36- exclude module : ' htmlunit-driver'
37- exclude group : ' net.sourceforge.htmlunit'
38-
3938 }
40- implementation ( " org.seleniumhq.selenium:selenium-support " ) {
39+ api ( ' org.seleniumhq.selenium:selenium-remote-driver ' ) {
4140 version {
42- strictly " ${ project.property('selenium.version') } "
41+ strictly " ${ seleniumVersion } "
4342 }
4443 }
45- implementation (" org.seleniumhq.selenium:selenium-api " ) {
44+ implementation (' org.seleniumhq.selenium:selenium-support ' ) {
4645 version {
47- strictly " ${ project.property('selenium.version') } "
46+ strictly " ${ seleniumVersion } "
4847 }
4948 }
5049 implementation ' com.google.code.gson:gson:2.8.8'
@@ -62,6 +61,11 @@ dependencies {
6261 testImplementation (group : ' io.github.bonigarcia' , name : ' webdrivermanager' , version : ' 5.0.3' ) {
6362 exclude group : ' org.seleniumhq.selenium'
6463 }
64+ testImplementation (' org.seleniumhq.selenium:selenium-chrome-driver' ) {
65+ version {
66+ strictly " ${ seleniumVersion} "
67+ }
68+ }
6569}
6670
6771ext {
@@ -176,7 +180,7 @@ wrapper {
176180
177181processResources {
178182 filter ReplaceTokens , tokens : [
179- ' selenium.version' : project . property( ' selenium.version ' )
183+ ' selenium.version' : seleniumVersion
180184 ]
181185}
182186
0 commit comments