@@ -23,28 +23,27 @@ java {
23
23
withSourcesJar()
24
24
}
25
25
26
+ ext {
27
+ seleniumVersion = project. property(' selenium.version' )
28
+ }
29
+
26
30
dependencies {
27
31
compileOnly ' org.projectlombok:lombok:1.18.22'
28
32
annotationProcessor ' org.projectlombok:lombok:1.18.22'
29
33
30
- api (" org.seleniumhq.selenium:selenium-java " ) {
34
+ api (' org.seleniumhq.selenium:selenium-api ' ) {
31
35
version {
32
- strictly " ${ project.property('selenium.version') } "
36
+ strictly " ${ seleniumVersion } "
33
37
}
34
-
35
- exclude group : ' com.google.code.gson'
36
- exclude module : ' htmlunit-driver'
37
- exclude group : ' net.sourceforge.htmlunit'
38
-
39
38
}
40
- implementation ( " org.seleniumhq.selenium:selenium-support " ) {
39
+ api ( ' org.seleniumhq.selenium:selenium-remote-driver ' ) {
41
40
version {
42
- strictly " ${ project.property('selenium.version') } "
41
+ strictly " ${ seleniumVersion } "
43
42
}
44
43
}
45
- implementation (" org.seleniumhq.selenium:selenium-api " ) {
44
+ implementation (' org.seleniumhq.selenium:selenium-support ' ) {
46
45
version {
47
- strictly " ${ project.property('selenium.version') } "
46
+ strictly " ${ seleniumVersion } "
48
47
}
49
48
}
50
49
implementation ' com.google.code.gson:gson:2.8.8'
@@ -62,6 +61,11 @@ dependencies {
62
61
testImplementation (group : ' io.github.bonigarcia' , name : ' webdrivermanager' , version : ' 5.0.3' ) {
63
62
exclude group : ' org.seleniumhq.selenium'
64
63
}
64
+ testImplementation (' org.seleniumhq.selenium:selenium-chrome-driver' ) {
65
+ version {
66
+ strictly " ${ seleniumVersion} "
67
+ }
68
+ }
65
69
}
66
70
67
71
ext {
@@ -176,7 +180,7 @@ wrapper {
176
180
177
181
processResources {
178
182
filter ReplaceTokens , tokens : [
179
- ' selenium.version' : project . property( ' selenium.version ' )
183
+ ' selenium.version' : seleniumVersion
180
184
]
181
185
}
182
186
0 commit comments