-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWORKSPACE
67 lines (52 loc) · 2.07 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
workspace(name = "example")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
RULES_JVM_EXTERNAL_TAG = "4.5"
RULES_JVM_EXTERNAL_SHA = "b17d7388feb9bfa7f2fa09031b32707df529f26c91ab9e5d909eb1676badd9a6"
http_archive(
name = "rules_jvm_external",
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
sha256 = RULES_JVM_EXTERNAL_SHA,
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
)
load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")
rules_jvm_external_deps()
load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")
rules_jvm_external_setup()
load("@rules_jvm_external//:defs.bzl", "maven_install")
maven_install(
artifacts = [
"com.vaticle.typedb:typedb-client:2.16.1",
"com.vaticle.typeql:typeql-lang:2.14.0",
"org.sharegov:mjson:1.4.1",
"com.univocity:univocity-parsers:2.9.1",
"junit:junit:4.13.2"
],
repositories = [
"https://maven.google.com",
"https://repo1.maven.org/maven2",
"https://repo.vaticle.com/repository/maven/",
],
)
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "vaticle_dependencies",
remote = "https://github.com/vaticle/dependencies",
commit = "a8b3b714a5e0562d41f4c05ca8f266d48b7d0fd3",
)
git_repository(
name = "vaticle_typedb_common",
remote = "https://github.com/vaticle/typedb-common",
commit = "f0dd708adaea9fe1fdc3699180797a12166d33e8"
)
load("@vaticle_dependencies//distribution:deps.bzl", "vaticle_bazel_distribution")
vaticle_bazel_distribution()
load("@vaticle_dependencies//distribution/artifact:rules.bzl", "native_artifact_files")
load("@vaticle_dependencies//distribution:deployment.bzl", "deployment")
native_artifact_files(
name = "vaticle_typedb_artifact",
group_name = "vaticle_typedb",
artifact_name = "typedb-server-{platform}-{version}.{ext}",
tag_source = deployment["artifact.release"],
commit_source = deployment["artifact.snapshot"],
tag = "2.11.1"
)