forked from griffinbank/rules_clojure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
83 lines (71 loc) · 2.38 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
workspace(name = "rules_clojure")
RULES_JVM_EXTERNAL_TAG = "4.5"
RULES_JVM_EXTERNAL_SHA = "b17d7388feb9bfa7f2fa09031b32707df529f26c91ab9e5d909eb1676badd9a6"
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
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,
)
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")
load("@rules_jvm_external//:specs.bzl", "maven")
maven_install(
name = "frozen_deps",
artifacts = [
maven.artifact(
group = "org.clojure",
artifact = "clojure",
version = "1.11.1",
exclusions = [
"org.clojure:spec.alpha",
"org.clojure:core.specs.alpha"
]
),
maven.artifact(
group = "org.clojure",
artifact = "spec.alpha",
version = "0.3.218",
exclusions = ["org.clojure:clojure"]
),
maven.artifact(
group = "org.clojure",
artifact = "core.specs.alpha",
version = "0.2.62",
exclusions = [
"org.clojure:clojure",
"org.clojure:spec.alpha"
]
),
"org.clojure:data.json:2.4.0",
"org.clojure:java.classpath:1.0.0",
"org.clojure:tools.namespace:1.1.0",
"org.clojure:tools.deps.alpha:0.14.1212"
],
maven_install_json = "@//:frozen_deps_install.json",
fail_if_repin_required = True,
repositories = [
"https://repo1.maven.org/maven2",
"https://repo.clojars.org/"
]
)
load("@frozen_deps//:defs.bzl", "pinned_maven_install")
pinned_maven_install()
load ("//:repositories.bzl", "rules_clojure_deps")
rules_clojure_deps()
load("//:setup.bzl", "rules_clojure_setup")
rules_clojure_setup()
# used for testing
maven_install(
name = "clojure_old",
artifacts = [
"org.clojure:clojure:1.8.0",],
fail_if_repin_required = True,
repositories = [
"https://repo1.maven.org/maven2",
"https://repo.clojars.org/"
])