-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathWORKSPACE
150 lines (126 loc) · 4.59 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
workspace(name="rules_intellij_generate_scenarios")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
maven_jar(name="com_google_guava_guava", artifact="com.google.guava:guava:19.0")
maven_jar(name="com_google_auto_value", artifact="com.google.auto.value:auto-value:1.5.2")
local_repository(
name = "rules_intellij_generate",
path = "../rules",
)
rules_junit5_sha = "e86a061d86ccb695f705d32c70804f9dc2f4d760"
http_archive(
name = "rules_junit5",
url = "https://github.com/sconover/rules_junit5/archive/%s.tar.gz" % rules_junit5_sha,
strip_prefix = "rules_junit5-%s" % rules_junit5_sha,
)
load("@rules_junit5//:def.bzl", "junit5_repositories")
junit5_repositories()
http_archive(
name = "com_google_protobuf",
strip_prefix = "protobuf-3.11.0",
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.11.0.tar.gz"],
)
http_archive(
name = "com_google_protobuf_javalite",
strip_prefix = "protobuf-javalite",
urls = ["https://github.com/google/protobuf/archive/javalite.zip"],
)
http_archive(
name = "io_grpc_grpc_java",
urls = ["https://github.com/grpc/grpc-java/archive/fd7d2e5eb4dd020bb892278c78f7b3ef901232c1.zip"],
strip_prefix = "grpc-java-fd7d2e5eb4dd020bb892278c78f7b3ef901232c1",
)
load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories")
grpc_java_repositories(
omit_com_google_guava=True,
omit_com_google_protobuf=True,
omit_com_google_protobuf_javalite=True,
)
# see https://github.com/bazelbuild/rules_nodejs
# rules_nodejs depends on bazel_skylib
# Bazel doesn't support transitive workspace deps so you must copy this.
http_archive(
name = "bazel_skylib",
url = "https://github.com/bazelbuild/bazel-skylib/archive/0.3.1.zip",
strip_prefix = "bazel-skylib-0.3.1",
sha256 = "95518adafc9a2b656667bbf517a952e54ce7f350779d0dd95133db4eb5c27fb1",
)
git_repository(
name = "build_bazel_rules_nodejs",
remote = "https://github.com/bazelbuild/rules_nodejs.git",
tag = "0.27.12", # 2019-04-09. check for the latest tag when you install
)
load("@build_bazel_rules_nodejs//:defs.bzl", "node_repositories")
load("@build_bazel_rules_nodejs//:defs.bzl", "npm_install")
# for all js/ts-related examples
http_archive(
name = "node",
url = "https://nodejs.org/dist/v10.14.2/node-v10.14.2-darwin-x64.tar.gz",
strip_prefix = "node-v10.14.2-darwin-x64",
build_file_content="""
exports_files([
"bin/node",
])
"""
)
# 12_kotlin
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
rules_kotlin_version = "legacy-1.3.0-rc3"
rules_kotlin_sha = "54678552125753d9fc0a37736d140f1d2e69778d3e52cf454df41a913b964ede"
http_archive(
name = "io_bazel_rules_kotlin",
urls = ["https://github.com/bazelbuild/rules_kotlin/archive/%s.zip" % rules_kotlin_version],
type = "zip",
strip_prefix = "rules_kotlin-%s" % rules_kotlin_version,
sha256 = rules_kotlin_sha,
)
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains")
kotlin_repositories()
kt_register_toolchains()
# 15_typescript_rules_multi_tsc
new_local_repository(
name="node_modules_15_typescript_rules_multi_tsc",
path="15_typescript_rules_multi_tsc/deps",
build_file_content="""
exports_files([
"package.json",
"package-lock.json",
"node_modules/mocha/bin/mocha",
"node_modules/typescript/lib/tsc.js",
])
filegroup(
name = "all_files",
srcs = glob([
"node_modules/**",
]),
visibility = ["//visibility:public"],
)
filegroup(
name = "default_typings",
srcs = glob([
"node_modules/@types/**",
]),
visibility = ["//visibility:public"],
)
"""
)
rules_multi_tsc_version = "b532865f32eff58338f6a9822adaa7d3142c845d"
http_archive(
name = "rules_multi_tsc",
urls = ["https://github.com/sconover/rules_multi_tsc/archive/%s.zip" % rules_multi_tsc_version],
type = "zip",
strip_prefix = "rules_multi_tsc-%s/rules" % rules_multi_tsc_version
)
http_archive(
name = "rules_python",
sha256 = "e5470e92a18aa51830db99a4d9c492cc613761d5bdb7131c04bd92b9834380f6",
strip_prefix = "rules_python-4b84ad270387a7c439ebdccfd530e2339601ef27",
urls = ["https://github.com/bazelbuild/rules_python/archive/4b84ad270387a7c439ebdccfd530e2339601ef27.tar.gz"],
)
http_archive(
name = "zlib",
build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
strip_prefix = "zlib-1.2.11",
urls = ["https://github.com/madler/zlib/archive/v1.2.11.tar.gz"],
)