Skip to content

Commit 7af7ff8

Browse files
authored
build: do not mark selenium dependencies versions as strict
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 selenium dependencies versions are not marked as strict.
1 parent 665c7f5 commit 7af7ff8

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

build.gradle

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,9 @@ dependencies {
3131
compileOnly 'org.projectlombok:lombok:1.18.22'
3232
annotationProcessor 'org.projectlombok:lombok:1.18.22'
3333

34-
api ('org.seleniumhq.selenium:selenium-api') {
35-
version {
36-
strictly "${seleniumVersion}"
37-
}
38-
}
39-
api ('org.seleniumhq.selenium:selenium-remote-driver') {
40-
version {
41-
strictly "${seleniumVersion}"
42-
}
43-
}
44-
implementation ('org.seleniumhq.selenium:selenium-support') {
45-
version {
46-
strictly "${seleniumVersion}"
47-
}
48-
}
34+
api "org.seleniumhq.selenium:selenium-api:${seleniumVersion}"
35+
api "org.seleniumhq.selenium:selenium-remote-driver:${seleniumVersion}"
36+
implementation "org.seleniumhq.selenium:selenium-support:${seleniumVersion}"
4937
implementation 'com.google.code.gson:gson:2.8.9'
5038
implementation 'commons-codec:commons-codec:1.15'
5139
implementation 'cglib:cglib:3.3.0'
@@ -61,11 +49,7 @@ dependencies {
6149
testImplementation (group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '5.0.3') {
6250
exclude group: 'org.seleniumhq.selenium'
6351
}
64-
testImplementation ('org.seleniumhq.selenium:selenium-chrome-driver') {
65-
version {
66-
strictly "${seleniumVersion}"
67-
}
68-
}
52+
testImplementation "org.seleniumhq.selenium:selenium-chrome-driver:${seleniumVersion}"
6953
}
7054

7155
ext {

0 commit comments

Comments
 (0)