-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
72 lines (59 loc) · 2.03 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
workspace(
name = "ff_virtual_2020",
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Java
## Bazel Rules for working with Maven
## see: https://github.com/bazelbuild/rules_jvm_external
RULES_JVM_EXTERNAL_TAG = "2.8"
RULES_JVM_EXTERNAL_SHA = "79c9850690d7614ecdb72d68394f994fef7534b292c4867ce5e7dec0aa7bdfad"
http_archive(
name = "rules_jvm_external",
sha256 = RULES_JVM_EXTERNAL_SHA,
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,
)
## Flink
load("//tools/flink:flink.bzl", "flink_artifacts", "flink_testing_artifacts")
## JUnit5
load("//tools/junit:junit5.bzl", "junit_jupiter_java_artifacts", "junit_platform_java_artifacts")
## Apache Avro
load("//tools/avro:avro.bzl", "avro_artifacts")
## Checkstyle
load("//tools/checkstyle:checkstyle.bzl", "checkstyle_artifacts")
## Maven
load("@rules_jvm_external//:defs.bzl", "maven_install")
load("@rules_jvm_external//:specs.bzl", "maven")
load("//tools:defs.bzl", "FLINK_ADDONS", "FLINK_SCALA_VERSION", "FLINK_VERSION")
maven_install(
artifacts = [
# testing
maven.artifact(
group = "com.google.truth",
artifact = "truth",
version = "1.0.1",
),
] + flink_artifacts(
addons = FLINK_ADDONS,
scala_version = FLINK_SCALA_VERSION,
version = FLINK_VERSION,
) + flink_testing_artifacts(
scala_version = FLINK_SCALA_VERSION,
version = FLINK_VERSION,
) + junit_jupiter_java_artifacts(
version = "5.5.1",
) + junit_platform_java_artifacts(
version = "1.5.1",
) + avro_artifacts(
version = "1.8.2",
) + checkstyle_artifacts(),
fetch_sources = True,
repositories = [
"https://repo1.maven.org/maven2",
"https://jcenter.bintray.com/",
# com.github.everit-org.json-schema
"https://jitpack.io",
# pulsar connector
"https://dl.bintray.com/streamnative/maven",
],
)