You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -333,6 +333,34 @@ skipping Selenium's own tests.
333
333
334
334
The maven jars should now be in your local `~/.m2/repository`.
335
335
336
+
## Updating Java dependencies
337
+
338
+
The coordinates (_groupId_:_artifactId_:_version_) of the Java dependencies
339
+
are defined in the file [maven_deps.bzl](https://github.com/SeleniumHQ/selenium/blob/trunk/java/maven_deps.bzl).
340
+
The process to modify these dependencies is the following:
341
+
342
+
1. (Optional) If we want to detect the dependencies which are not updated,
343
+
we can use the following command for automatic discovery:
For instance, we can bump the version of a given artifact detected in the step before.
351
+
352
+
3. Repin dependencies. This process is required to update the file [maven_install.json](https://github.com/SeleniumHQ/selenium/blob/trunk/java/maven_install.json),
353
+
which is used to manage the Maven dependencies tree (see [rules_jvm_external](https://github.com/bazelbuild/rules_jvm_external) for further details). The command to carry out this step is the following:
354
+
355
+
```sh
356
+
REPIN=1 bazel run @unpinned_maven//:pin
357
+
```
358
+
359
+
4. (Optional) If we use IntelliJ with the Bazel plugin, we need to synchronize
360
+
our project. To that aim, we click on _Bazel_→_Sync_→_Sync Project
361
+
with BUILD Files_.
362
+
363
+
336
364
## Running browser tests on Linux
337
365
338
366
In order to run Browser tests, you first need to install the browser-specific drivers,
0 commit comments