Starlarkify java_import
rule
#15196
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Rules-Java
Issues for Java rules
type: feature request
Bazel team would like to rewrite all rules that are part of Java to Starlark. We're making good progress, but this could be even faster with contributions from the community.
java_import
rule is a good "medium" difficulty rule to rewrite to Starlark by the community. Some previous experience in Starlark, previous PRs are probably needed. This is not a good starter project. Bazel team can provide support on ambiguous problems and solutions, however our time is limited and we can't help with everything.There are other "medium" difficulty rules to rewrite:
java_runtime
,java_package_configuration
orjava_toolchain
. Each of them contains something tricky - the code is shorted, but probably also not a good starter project without previously agreeing on how to solve tricky part.Instructions:
JavaImport
,JavaImportBaseRule
,BazelJavaImportBaseRule
classes (and their dependencies)bzl
files, see examples of already Starlarkfied rules, follow the style ofjava_library.bzl
implementationexports.bzl
Details:
semantics.checkRule
can be removed, Bazel's implementation is noopijar_action
import_deps_check_action
JavaInfo
created withJavaInfo
constructor (it might needs extensions - be conservative)The text was updated successfully, but these errors were encountered: