Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c705ad

Browse files
committed
Kotlin/Bazel: fix java release to 8 for java code
1 parent bd631c5 commit 8c705ad

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

java/kotlin-extractor/BUILD.bazel

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ load(
3131
"version_less",
3232
)
3333
load("@rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library")
34-
load("@rules_kotlin//kotlin:core.bzl", "kt_kotlinc_options")
34+
load("@rules_kotlin//kotlin:core.bzl", "kt_javac_options", "kt_kotlinc_options")
3535

3636
package(default_visibility = ["//java/kotlin-extractor:__subpackages__"])
3737

@@ -57,6 +57,11 @@ _resources = [
5757
for r in glob(["src/main/resources/**"])
5858
]
5959

60+
kt_javac_options(
61+
name = "javac-options",
62+
release = "8",
63+
)
64+
6065
[
6166
(
6267
kt_kotlinc_options(
@@ -102,6 +107,7 @@ _resources = [
102107
],
103108
exclude = ["src/main/kotlin/utils/versions/**"],
104109
) + get_compatilibity_sources(v, "src/main/kotlin/utils/versions"),
110+
javac_opts = ":javac-options",
105111
kotlinc_opts = ":kotlinc-options-%s" % v,
106112
module_name = "codeql-kotlin-extractor",
107113
# resource_strip_prefix is very nit-picky: the following makes it work from

0 commit comments

Comments
 (0)