Skip to content

Commit f64e34f

Browse files
authored
build: relax constraints of Selenium dependencies versions (#1606)
https://docs.gradle.org/current/userguide/dependency_downgrade_and_exclude.html: "conflicting strict dependencies will trigger a build failure that you have to resolve". An attempt to use `java-client:8.0.0-beta` in conjunction with Selenium 4.1.0 leads to build failures, like: ``` > Could not resolve org.seleniumhq.selenium:selenium-remote-driver:{strictly 4.0.0}. Required by: project :xxxxxxx > io.appium:java-client:8.0.0-beta ``` In a favor of flexibility the constraints of selenium dependencies versions are relaxed.
1 parent 665c7f5 commit f64e34f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

build.gradle

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,20 @@ dependencies {
3333

3434
api ('org.seleniumhq.selenium:selenium-api') {
3535
version {
36-
strictly "${seleniumVersion}"
36+
strictly '[4.0, 5.0)'
37+
prefer "${seleniumVersion}"
3738
}
3839
}
3940
api ('org.seleniumhq.selenium:selenium-remote-driver') {
4041
version {
41-
strictly "${seleniumVersion}"
42+
strictly '[4.0, 5.0)'
43+
prefer "${seleniumVersion}"
4244
}
4345
}
4446
implementation ('org.seleniumhq.selenium:selenium-support') {
4547
version {
46-
strictly "${seleniumVersion}"
48+
strictly '[4.0, 5.0)'
49+
prefer "${seleniumVersion}"
4750
}
4851
}
4952
implementation 'com.google.code.gson:gson:2.8.9'
@@ -63,7 +66,8 @@ dependencies {
6366
}
6467
testImplementation ('org.seleniumhq.selenium:selenium-chrome-driver') {
6568
version {
66-
strictly "${seleniumVersion}"
69+
strictly '[4.0, 5.0)'
70+
prefer "${seleniumVersion}"
6771
}
6872
}
6973
}

0 commit comments

Comments
 (0)