Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose kt_kotlinc_options and kt_javac_options #386

Merged
merged 2 commits into from
Nov 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions kotlin/internal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

kt_kotlinc_options(
name = "default_kotlinc_options",
# Used internally as the rule default. This should be
# considered an implementation detail and not used externally
visibility = ["//visibility:public"],
)

kt_javac_options(
name = "default_javac_options",
# Used internally as the rule default. This should be
# considered an implementation detail and not used externally
visibility = ["//visibility:public"],
)

Expand Down
4 changes: 4 additions & 0 deletions kotlin/kotlin.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ load(
load(
"//kotlin:rules.bzl",
_define_kt_toolchain = "define_kt_toolchain",
_kt_kotlinc_options = "kt_kotlinc_options",
_kt_javac_options = "kt_javac_options",
_kt_android_library = "kt_android_library",
_kt_compiler_plugin = "kt_compiler_plugin",
_kt_js_import = "kt_js_import",
Expand All @@ -32,6 +34,8 @@ load(

kotlin_repositories = _kotlin_repositories
define_kt_toolchain = _define_kt_toolchain
kt_kotlinc_options = _kt_kotlinc_options
kt_javac_options = _kt_javac_options
kt_js_library = _kt_js_library
kt_js_import = _kt_js_import
kt_register_toolchains = _kt_register_toolchains
Expand Down
7 changes: 7 additions & 0 deletions kotlin/rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ load(
_define_kt_toolchain = "define_kt_toolchain",
_kt_register_toolchains = "kt_register_toolchains",
)
load(
"//kotlin/internal:opts.bzl",
_kt_kotlinc_options = "kt_kotlinc_options",
_kt_javac_options = "kt_javac_options",
)
load(
"//kotlin/internal/jvm:jvm.bzl",
_kt_compiler_plugin = "kt_compiler_plugin",
Expand All @@ -38,6 +43,8 @@ load(
)

define_kt_toolchain = _define_kt_toolchain
kt_kotlinc_options = _kt_kotlinc_options
kt_javac_options = _kt_javac_options
kt_js_library = _kt_js_library
kt_js_import = _kt_js_import
kt_register_toolchains = _kt_register_toolchains
Expand Down