-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
68 lines (50 loc) · 2.22 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
workspace(
name = "com_example_bitcoin_tools_project",
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
#
# Definition of our remote repository dependency
#
BITCOIN_TOOLS_COMMIT = "8a6b2ccb237ce6f1f598b96197668c1fc19c4fca"
http_archive(
name = "nl_tulipsolutions_bitcoin_tools",
sha256 = "ae39596f103b900a960ede831770cd3e60281486d1498865e5f70a3742bdf9f0",
strip_prefix = "bitcoin-tools-%s" % BITCOIN_TOOLS_COMMIT,
url = "https://github.com/TulipSolutions/bitcoin-tools/archive/%s.zip" % BITCOIN_TOOLS_COMMIT,
)
#
# General java and kotlin stuff
#
RULES_JVM_EXTERNAL_TAG = "3.3"
RULES_JVM_EXTERNAL_SHA = "d85951a92c0908c80bd8551002d66cb23c3434409c814179c0ff026b53544dab"
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//:defs.bzl", "maven_install")
# Load the dependencies that are required by keyderivation
load("@nl_tulipsolutions_bitcoin_tools//src/main/kotlin/nl/tulipsolutions/keyderivation:deps.bzl", "KEYDERIVATION_ARTIFACTS")
maven_install(
artifacts = [
] + KEYDERIVATION_ARTIFACTS,
repositories = [
"https://repo1.maven.org/maven2",
"https://repo.maven.apache.org/maven2/",
],
)
# Do this once an pin them or copy them from known valid sources see: maven_install.json
#load("@maven//:defs.bzl", "pinned_maven_install")
#pinned_maven_install()
rules_kotlin_version = "legacy-1.4.0-rc3"
rules_kotlin_sha = "da0e6e1543fcc79e93d4d93c3333378f3bd5d29e82c1bc2518de0dbe048e6598"
http_archive(
name = "io_bazel_rules_kotlin",
sha256 = rules_kotlin_sha,
urls = ["https://github.com/bazelbuild/rules_kotlin/releases/download/%s/rules_kotlin_release.tgz" % rules_kotlin_version],
)
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains")
kotlin_repositories() # if you want the default. Otherwise see custom kotlinc distribution below
kt_register_toolchains() # to use the default toolchain, otherwise see toolchains below