aboutsummaryrefslogtreecommitdiff
path: root/java/WORKSPACE.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'java/WORKSPACE.bazel')
-rw-r--r--java/WORKSPACE.bazel14
1 files changed, 14 insertions, 0 deletions
diff --git a/java/WORKSPACE.bazel b/java/WORKSPACE.bazel
index a5c2138..0b23445 100644
--- a/java/WORKSPACE.bazel
+++ b/java/WORKSPACE.bazel
@@ -9,6 +9,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file"
RULES_JVM_EXTERNAL_TAG = "4.0"
RULES_JVM_EXTERNAL_SHA = "31701ad93dbfe544d597dbe62c9a1fdd76d81d8a9150c2bf1ecf928ecdf97169"
+RULES_KOTLIN_VERSION = "1.9.0"
+RULES_KOTLIN_SHA = "5766f1e599acf551aa56f49dab9ab9108269b03c557496c54acaf41f98e2b8d6"
http_archive(
name = "rules_jvm_external",
@@ -19,6 +21,18 @@ http_archive(
load("@rules_jvm_external//:defs.bzl", "maven_install")
+http_archive(
+ name = "rules_kotlin",
+ urls = ["https://github.com/bazelbuild/rules_kotlin/releases/download/v%s/rules_kotlin-v%s.tar.gz" % (RULES_KOTLIN_VERSION, RULES_KOTLIN_VERSION)],
+ sha256 = RULES_KOTLIN_SHA,
+)
+
+load("@rules_kotlin//kotlin:repositories.bzl", "kotlin_repositories")
+kotlin_repositories() # if you want the default. Otherwise see custom kotlinc distribution below
+
+load("@rules_kotlin//kotlin:core.bzl", "kt_register_toolchains")
+kt_register_toolchains() # to use the default toolchain, otherwise see toolchains below
+
maven_install(
artifacts = ["junit:junit:4.12"],
repositories = [