Bazel+ Kotlin+ Allopen插件不工作
我拥有Bazel Build Config:
...
load("@io_bazel_rules_kotlin//kotlin:core.bzl", "define_kt_toolchain", "kt_compiler_plugin", "kt_kotlinc_options")
load("@io_bazel_rules_kotlin//kotlin:jvm.bzl", "kt_javac_options", "kt_jvm_library")
package(default_visibility = ["//visibility:public"])
kt_compiler_plugin(
name = "allopen",
compile_phase = True,
id = "org.jetbrains.kotlin.allopen",
options = {
"annotation": "plugin.allopen.OpenForTesting",
"preset": "spring",
},
stubs_phase = True,
deps = [
"@com_github_jetbrains_kotlin//:allopen-compiler-plugin",
],
)
...
运行同步后甚至建立想法后仍然向我展示我需要将类设置为打开的提示。
我在做什么错?拜托,巴泽尔的大师,帮助我:)
I have Bazel build config:
...
load("@io_bazel_rules_kotlin//kotlin:core.bzl", "define_kt_toolchain", "kt_compiler_plugin", "kt_kotlinc_options")
load("@io_bazel_rules_kotlin//kotlin:jvm.bzl", "kt_javac_options", "kt_jvm_library")
package(default_visibility = ["//visibility:public"])
kt_compiler_plugin(
name = "allopen",
compile_phase = True,
id = "org.jetbrains.kotlin.allopen",
options = {
"annotation": "plugin.allopen.OpenForTesting",
"preset": "spring",
},
stubs_phase = True,
deps = [
"@com_github_jetbrains_kotlin//:allopen-compiler-plugin",
],
)
...
After running sync or even building IDEA still show me a hint that I need to set Class as Open.
What I'm doing wrong? Please, gurus of Bazel, help me :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论