forked from swarren12/rules_java-toolchain-issue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
47 lines (34 loc) · 1.08 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
#
# Bazel MODULE
#
module(
name = "bazel-sandbox",
repo_name = "bazel-sandbox",
)
### Bazel Dependencies
# Java
### https://github.com/bazelbuild/rules_java
bazel_dep(name = "rules_java", version = "7.3.1", dev_dependency = True)
single_version_override(module_name = "rules_java", version = "7.3.1")
custom_java = use_extension("//:java.bzl", "custom_java")
use_repo(custom_java, "jdk11")
register_toolchains("@jdk11//:all")
# Maven
### https://github.com/bazelbuild/rules_jvm_external
bazel_dep(name = "rules_jvm_external", version = "5.3", dev_dependency = True)
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
name = "maven",
artifacts = [
"org.slf4j:slf4j-api:2.0.7",
"org.slf4j:slf4j-simple:2.0.7",
"junit:junit:4.13",
],
fetch_sources = True,
lock_file = "//:maven_install.json",
repositories = ["https://repo1.maven.org/maven2"],
)
use_repo(maven, "maven")
# Python
### https://github.com/bazelbuild/rules_python
bazel_dep(name = "rules_python", version = "0.33.1", dev_dependency = True)