-
Notifications
You must be signed in to change notification settings - Fork 1
/
WORKSPACE
118 lines (96 loc) · 3.72 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
workspace(
name = "angular_on_java",
managed_directories = {"@npm": ["node_modules"]},
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
#
# Enable global maven dependency.
#
RULES_JVM_EXTERNAL_TAG = "3.1"
http_archive(
name = "rules_jvm_external",
sha256 = "e246373de2353f3d34d35814947aa8b7d0dd1a58c2f7a6c41cfeaff3007c2d14",
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" %
RULES_JVM_EXTERNAL_TAG,
)
load("@rules_jvm_external//:defs.bzl", "maven_install")
GOOGLE_AUTO_VALUE_VERSION = "1.7"
SPRING_VERSION = "5.2.3.RELEASE"
maven_install(
artifacts = [
"com.google.auto.value:auto-value:" + GOOGLE_AUTO_VALUE_VERSION,
"com.google.auto.value:auto-value-annotations:" +
GOOGLE_AUTO_VALUE_VERSION,
"com.google.errorprone:error_prone_annotations:2.0.21",
"com.google.flogger:flogger:0.4",
"com.google.flogger:flogger-system-backend:0.4",
"com.google.guava:guava:28.1-jre",
"com.google.truth:truth:0.35",
"javax.inject:javax.inject:1",
"javax.servlet:javax.servlet-api:4.0.1",
"javax.servlet:jstl:1.2",
"junit:junit:4.12",
"org.hamcrest:hamcrest-library:1.3",
"org.mockito:mockito-core:2.9.0",
"org.springframework:spring-aop:" + SPRING_VERSION,
"org.springframework:spring-beans:" + SPRING_VERSION,
"org.springframework:spring-context:" + SPRING_VERSION,
"org.springframework:spring-web:" + SPRING_VERSION,
"org.springframework:spring-webmvc:" + SPRING_VERSION,
"org.springframework:spring-test:" + SPRING_VERSION,
],
repositories = [
"https://maven.google.com",
"https://repo1.maven.org/maven2",
],
)
# NPM and Angular, copied from https://github.com/angular/angular-bazel-example.
NODEJS_RULES_VERSION = "3.2.0"
http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "fcc6dccb39ca88d481224536eb8f9fa754619676c6163f87aa6af94059b02b12",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/" +
"%s/rules_nodejs-%s.tar.gz" %
(NODEJS_RULES_VERSION, NODEJS_RULES_VERSION)],
)
# Fetch sass rules for compiling sass files"
SASS_RULES_VERSION = "1.32.7"
http_archive(
name = "io_bazel_rules_sass",
strip_prefix = "rules_sass-%s" % SASS_RULES_VERSION,
urls = [
"https://github.com/bazelbuild/rules_sass/archive/%s.zip" %
SASS_RULES_VERSION,
"https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/%s.zip" %
SASS_RULES_VERSION,
],
)
# Check the bazel version and download npm dependencies
load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install")
# Setup the Node.js toolchain & install our npm dependencies into @npm
yarn_install(
name = "npm",
package_json = "//:package.json",
yarn_lock = "//:yarn.lock",
)
# Load @bazel/protractor dependencies
load("@npm//@bazel/protractor:package.bzl", "npm_bazel_protractor_dependencies")
npm_bazel_protractor_dependencies()
# Setup the rules_webtesting toolchain
load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories")
web_test_repositories()
load("@io_bazel_rules_webtesting//web/versioned:browsers-0.3.2.bzl", "browser_repositories")
browser_repositories(
chromium = True,
firefox = True,
)
# Setup the rules_sass toolchain
load("@io_bazel_rules_sass//sass:sass_repositories.bzl", "sass_repositories")
sass_repositories()
http_archive(
name = "bazville",
sha256 = "902e1fee3d2cf2b1df479b486545c859d9ad3edecc0895559ca49bc58b10c9ad",
strip_prefix = "bazville-v_0_0_2",
urls = ["https://github.com/jiaqi/bazville/archive/v_0_0_2.zip"],
)