Files
Alexander Shparun f927365466 AIR-3506 enforce -Xcontext-parameters in fleet modules
GitOrigin-RevId: b163ae21e00c2ad36355256220467b3b160fe2a0
2026-01-21 06:40:10 +00:00

36 lines
1.2 KiB
Python

### auto-generated section `build fleet.reporting.shared` start
load("//build:compiler-options.bzl", "create_kotlinc_options")
load("@rules_jvm//:jvm.bzl", "jvm_library", "resourcegroup")
create_kotlinc_options(
name = "custom_shared",
opt_in = ["kotlinx.coroutines.ExperimentalCoroutinesApi"],
x_consistent_data_class_copy_visibility = True,
x_context_parameters = True,
x_jvm_default = "all-compatibility",
x_lambdas = "class"
)
resourcegroup(
name = "shared_resources",
srcs = glob(["resources/**/*"]),
strip_prefix = "resources"
)
jvm_library(
name = "shared",
module_name = "fleet.reporting.shared",
visibility = ["//visibility:public"],
srcs = glob(["srcCommonMain/**/*.kt", "srcCommonMain/**/*.java", "srcCommonMain/**/*.form"], allow_empty = True, exclude = ["**/module-info.java"]),
resources = [":shared_resources"],
kotlinc_opts = ":custom_shared",
deps = [
"@lib//:kotlin-stdlib",
"@lib//:kotlinx-coroutines-core",
"@lib//:kotlinx-serialization-core",
"@lib//:kotlinx-serialization-json",
"//fleet/reporting/api",
"//fleet/multiplatform.shims",
]
)
### auto-generated section `build fleet.reporting.shared` end