-
Notifications
You must be signed in to change notification settings - Fork 56
/
MODULE.bazel
100 lines (87 loc) · 3.12 KB
/
MODULE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
module(
name = "rules_webtesting",
version = "0.4.0",
)
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "platforms", version = "0.0.10")
##### Go dependencies #####
bazel_dep(name = "rules_go", version = "0.51.0-rc1", repo_name = "io_bazel_rules_go")
bazel_dep(name = "gazelle", version = "0.40.0", repo_name = "bazel_gazelle")
go_deps = use_extension("@bazel_gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
# All *direct* Go dependencies of the module have to be listed explicitly.
use_repo(
go_deps,
"com_github_gorilla_mux",
"com_github_tebeka_selenium",
)
##### Java dependencies #####
bazel_dep(name = "rules_jvm_external", version = "6.6")
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
artifacts = [
"com.google.guava:guava:33.2.1-jre",
"org.seleniumhq.selenium:selenium-remote-driver:4.27.0",
"org.seleniumhq.selenium:selenium-api:4.27.0",
"junit:junit:4.13.2",
],
)
use_repo(maven, "maven")
##### Python dependencies #####
bazel_dep(name = "rules_python", version = "1.0.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
is_default = True,
python_version = "3.11",
)
use_repo(python, "python_3_11", "python_versions")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "rules_webtesting_py_deps",
python_version = "3.11",
requirements_lock = "//:requirements_lock.txt",
requirements_windows = "requirements_lock_windows.txt",
)
use_repo(pip, "rules_webtesting_py_deps")
##### Scala dependencies #####
bazel_dep(name = "rules_scala", repo_name = "io_bazel_rules_scala")
# TODO: Switch to a release version once it's available in BCR.
# Otherwise, the root module has to declare the same override.
git_override(
module_name = "rules_scala",
commit = "7fb52c7fc2ef8f7670feb73c0a9869715bdc40b8",
remote = "https://github.com/mbland/rules_scala",
)
scala_deps = use_extension(
"@io_bazel_rules_scala//scala/extensions:deps.bzl",
"scala_deps",
)
scala_deps.settings(
fetch_sources = True,
)
scala_deps.toolchains(
scalatest = True,
)
##### Browsers dependencies #####
browser_repositories = use_extension("//web:extension.bzl", "browser_repositories_extension")
browser_repositories.install(version = "0.3.3")
use_repo(
browser_repositories,
"com_saucelabs_sauce_connect_linux_x64",
"com_saucelabs_sauce_connect_macos_x64",
"com_saucelabs_sauce_connect_windows_x64",
"org_chromium_chromedriver_linux_x64",
"org_chromium_chromedriver_macos_arm64",
"org_chromium_chromedriver_macos_x64",
"org_chromium_chromedriver_windows_x64",
"org_chromium_chromium_linux_x64",
"org_chromium_chromium_macos_arm64", # Only available in 0.3.3
"org_chromium_chromium_macos_x64",
"org_chromium_chromium_windows_x64",
"org_mozilla_firefox_linux_x64",
"org_mozilla_firefox_macos_arm64",
"org_mozilla_firefox_macos_x64",
"org_mozilla_geckodriver_linux_x64",
"org_mozilla_geckodriver_macos_arm64",
"org_mozilla_geckodriver_macos_x64",
)