forked from player-ui/rules_player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
85 lines (61 loc) · 1.93 KB
/
WORKSPACE
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
workspace(
name = "rules_player",
managed_directories = {
"@npm": ["node_modules"],
},
)
# Defines all potential dependencies -- loading these deps is done lazily on first access
load(":workspace.bzl", "deps")
deps()
# Like right here
# load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
# bazel_skylib_workspace()
load("//:conf.bzl", "apple", "distribution", "javascript", "skylib", "kotlin")
skylib()
# apple()
distribution()
javascript()
kotlin()
# TODO: This breaks the conf.bzl standard... b/c of the way bzl files
# are required to be structured, we can't consolidate config logic
# to a sinlge .bzl file. This is super frustrating when it comes to
# consolidating and standardizing common workspace configuration for
# Bazel projects and just adds to boilerplate overhead, even if in
# the name of being explicit.
# load("//swift:rules_deps.bzl", "rules_deps")
# rules_deps()
# load("//swift:extra_deps.bzl", "extra_deps")
# extra_deps()
# load("//apple:support_deps.bzl", "support_deps")
# support_deps()
load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains")
kt_register_toolchains()
load("@rules_player//junit5:conf.bzl", "junit5")
junit5()
######################
# Maven Dependencies #
######################
load("@rules_player//distribution:deps.bzl", artifacts = "maven")
load("@rules_jvm_external//:defs.bzl", "maven_install")
maven_install(
artifacts = artifacts,
fetch_sources = True,
repositories = [
"https://repo1.maven.org/maven2",
"https://maven.google.com/",
"https://plugins.gradle.org/m2/",
],
)
#####################
# Yarn Dependencies #
#####################
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
node_repositories(
node_version = "16.12.0",
yarn_version = "1.22.17",
)
yarn_install(
name = "npm",
package_json = "//:package.json",
yarn_lock = "//:yarn.lock",
)