From dff022388927ea1eec5e1cc6b76f6a4fa34764ad Mon Sep 17 00:00:00 2001 From: Daniel Brauner Date: Tue, 15 Oct 2024 09:48:46 +0200 Subject: [PATCH] fix kotlin build issue --- MODULE.bazel | 2 ++ third_party/kotlin/BUILD | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 third_party/kotlin/BUILD diff --git a/MODULE.bazel b/MODULE.bazel index bd68f53909d..adce232d004 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -3,6 +3,8 @@ module( repo_name = "intellij_with_bazel", ) +register_toolchains("//third_party/kotlin:toolchain") + bazel_dep( name = "platforms", version = "0.0.10", diff --git a/third_party/kotlin/BUILD b/third_party/kotlin/BUILD new file mode 100644 index 00000000000..8e7c2ce4616 --- /dev/null +++ b/third_party/kotlin/BUILD @@ -0,0 +1,8 @@ +load("@rules_kotlin//kotlin:core.bzl", "define_kt_toolchain") + +define_kt_toolchain( + name = "toolchain", + api_version = "1.9", + language_version = "1.9", + jvm_target = "17", +)