mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
jps-to-bazel: switch to intellij.platform.core.nio.fs
initially it was a problem with add_exports and rules_kotlin, but now we use our own rules_jvm where it's ok ref https://jetbrains.slack.com/archives/C07NAUFL875/p1726997242343889 GitOrigin-RevId: 69c228545d2925d1f16e346c68ad92857871ba31
This commit is contained in:
committed by
intellij-monorepo-bot
parent
6f07341223
commit
76f28261f9
@@ -1,14 +1,32 @@
|
||||
load("@rules_java//java:defs.bzl", "java_library")
|
||||
|
||||
java_library(
|
||||
name = "core-nio-fs",
|
||||
visibility = ["//visibility:public"],
|
||||
srcs = glob(["src/**/*.java"]),
|
||||
add_exports = ["java.base/sun.nio.fs"],
|
||||
deps = ["@lib//:jetbrains-annotations"]
|
||||
### auto-generated section `build intellij.platform.core.nio.fs` start
|
||||
load("@rules_jvm//:jvm.bzl", "jvm_library", "jvm_resources")
|
||||
load("@rules_kotlin//kotlin:jvm.bzl", "kt_javac_options")
|
||||
|
||||
kt_javac_options(
|
||||
name = "custom-javac-options",
|
||||
x_ep_disable_all_checks = True,
|
||||
warn = "off",
|
||||
add_exports = ["java.base/sun.nio.fs=ALL-UNNAMED"]
|
||||
)
|
||||
|
||||
### skip generation section `build intellij.platform.core.nio.fs`
|
||||
jvm_resources(
|
||||
name = "core-nio-fs_resources",
|
||||
files = glob(["resources/**/*"]),
|
||||
strip_prefix = "resources"
|
||||
)
|
||||
|
||||
jvm_library(
|
||||
name = "core-nio-fs",
|
||||
module_name = "intellij.platform.core.nio.fs",
|
||||
visibility = ["//visibility:public"],
|
||||
srcs = glob(["src/**/*.kt", "src/**/*.java"], allow_empty = True),
|
||||
javac_opts = ":custom-javac-options",
|
||||
deps = ["@lib//:jetbrains-annotations"],
|
||||
runtime_deps = [":core-nio-fs_resources"]
|
||||
)
|
||||
### auto-generated section `build intellij.platform.core.nio.fs` end
|
||||
|
||||
### auto-generated section `build intellij.platform.core.nio.fs.benchmarks` start
|
||||
load("@rules_java//java:defs.bzl", "java_library")
|
||||
|
||||
Reference in New Issue
Block a user