Files
Nikolay Chashnikovandintellij-monorepo-bot ea9f03e463 [jps build devkit] refactoring: extract code which generates the runtime module repository to a separate module (IJPL-201730)
Currently, the runtime module repository is generated by a plugin inside the JPS build during compilation. Doing the same in Bazel doesn't look like a good option because generating something for all modules in the project contradicts the incremental nature of Bazel. So it's better to invoke generation of the runtime module repository by JPS project configuration inside build scripts. To do that and avoid having dependencies on the JPS build classes inside the build scripts, the code which generates the runtime module repository is moved to a separate module 'intellij.devkit.runtimeModuleRepository.generator'.

GitOrigin-RevId: f2596fd51c1c019d304de36ed93fe163cf519ae6
2025-08-22 16:02:27 +00:00

19 lines
694 B
Python

### auto-generated section `build intellij.devkit.runtimeModuleRepository.generator` start
load("@rules_jvm//:jvm.bzl", "jvm_library")
jvm_library(
name = "generator",
module_name = "intellij.devkit.runtimeModuleRepository.generator",
visibility = ["//visibility:public"],
srcs = glob(["src/**/*.kt", "src/**/*.java", "src/**/*.form"], allow_empty = True),
kotlinc_opts = "@community//:k11",
deps = [
"@lib//:kotlin-stdlib",
"//platform/util",
"//jps/model-api:model",
"//platform/runtime/repository",
"//jps/model-serialization",
"@lib//:jetbrains-annotations",
]
)
### auto-generated section `build intellij.devkit.runtimeModuleRepository.generator` end