-
Notifications
You must be signed in to change notification settings - Fork 5.2k
/
BUILD.bazel
19 lines (14 loc) · 1.1 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
load("@rules_kotlin//kotlin:core.bzl", "define_kt_toolchain")
load("@rules_kotlin//kotlin:jvm.bzl", "kt_javac_options")
load("@rules_kotlin//kotlin:core.bzl", "kt_kotlinc_options")
define_kt_toolchain(
name = "kotlin_toolchain",
api_version = "2.0",
language_version = "2.0"
)
kt_javac_options(name="j8", release = "8", x_ep_disable_all_checks = True, visibility = ["//visibility:public"])
kt_kotlinc_options(name="k8", jvm_target = "1.8", x_optin = ["com.intellij.openapi.util.IntellijInternalApi"], visibility = ["//visibility:public"])
kt_javac_options(name="j11", release = "11", x_ep_disable_all_checks = True, visibility = ["//visibility:public"])
kt_kotlinc_options(name="k11", jvm_target = "11", x_optin = ["com.intellij.openapi.util.IntellijInternalApi", "kotlinx.serialization.ExperimentalSerializationApi"], visibility = ["//visibility:public"])
kt_javac_options(name="j17", release = "17", x_ep_disable_all_checks = True, visibility = ["//visibility:public"])
kt_kotlinc_options(name="k17", jvm_target = "17", x_optin = ["com.intellij.openapi.util.IntellijInternalApi"], visibility = ["//visibility:public"])