Files
openide/python/python-hatch/BUILD.bazel
Leonid Shalupov cff76ea65e bazel: split test and build sections in convert jps to bazel:L update Bazel files
GitOrigin-RevId: 90063178de33c2a95bfdebd160a721d6977d8097
2025-07-18 16:18:47 +00:00

40 lines
1.3 KiB
Python

### auto-generated section `build intellij.python.hatch` start
load("//build:compiler-options.bzl", "create_kotlinc_options")
load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources")
create_kotlinc_options(
name = "custom_hatch",
opt_in = ["kotlin.time.ExperimentalTime"]
)
jvm_resources(
name = "hatch_resources",
files = glob(["resources/**/*"]),
strip_prefix = "resources"
)
jvm_library(
name = "hatch",
module_name = "intellij.python.hatch",
visibility = ["//visibility:public"],
srcs = glob(["gen/**/*.kt", "gen/**/*.java", "src/**/*.kt", "src/**/*.java"], allow_empty = True),
kotlinc_opts = ":custom_hatch",
deps = [
"@lib//:kotlin-stdlib",
"//platform/util",
"//platform/platform-util-io:ide-util-io",
"//platform/eel-impl",
"//platform/eel-provider",
"//platform/core-api:core",
"@lib//:kotlinx-serialization-json",
"@lib//:kotlinx-serialization-core",
"//python/openapi:community",
"//python/python-exec-service:community-execService",
"@lib//:io-github-z4kn4fein-semver-jvm",
"//platform/projectModel-api:projectModel",
"//python/python-sdk:sdk",
"//python/python-pyproject:pyproject",
],
runtime_deps = [":hatch_resources"]
)
### auto-generated section `build intellij.python.hatch` end