This repository was archived by the owner on Mar 22, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathBUILD.bazel
More file actions
57 lines (51 loc) · 1.44 KB
/
BUILD.bazel
File metadata and controls
57 lines (51 loc) · 1.44 KB
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
load("@rules_kotlin//kotlin:core.bzl", "define_kt_toolchain", "kt_compiler_plugin")
load("@rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library")
load("@//rule:extract_update_log.bzl", "extract_update_log")
load("//:properties.bzl", "mod_version")
load("@rules_java//java:defs.bzl", "java_plugin")
load("@rules_java//java:defs.bzl", "java_library")
kt_compiler_plugin(
name = "serialization_plugin",
compile_phase = True,
id = "org.jetbrains.kotlin.serialization",
stubs_phase = True,
deps = [
"@rules_kotlin//kotlin/compiler:kotlinx-serialization-compiler-plugin",
],
)
kt_jvm_library(
name = "kotlin_serialization",
srcs = [],
visibility = ["//visibility:public"],
exported_compiler_plugins = [":serialization_plugin"],
exports = [
"@maven//:org_jetbrains_kotlinx_kotlinx_serialization_core_jvm",
],
)
define_kt_toolchain(
name = "kotlin_toolchain",
jvm_target = "21",
api_version = "2.0",
language_version = "2.0",
experimental_use_abi_jars = True,
experimental_strict_kotlin_deps = "error",
)
extract_update_log(
name = "update_log",
visibility = ["//visibility:public"],
version = mod_version,
inputs = [
"NEWS-zh.md",
"NEWS-en.md",
],
)
alias(
name = "license",
visibility = ["//visibility:public"],
actual = "LICENSE",
)
java_library(
name = "license_jar",
visibility = ["//visibility:public"],
resources = [":license"],
)