mirror of
https://github.com/github/codeql.git
synced 2026-04-23 07:45:17 +02:00
Kotlin/Bazel: fix java release to 8 for java code
This commit is contained in:
@@ -31,7 +31,7 @@ load(
|
||||
"version_less",
|
||||
)
|
||||
load("@rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library")
|
||||
load("@rules_kotlin//kotlin:core.bzl", "kt_kotlinc_options")
|
||||
load("@rules_kotlin//kotlin:core.bzl", "kt_javac_options", "kt_kotlinc_options")
|
||||
|
||||
package(default_visibility = ["//java/kotlin-extractor:__subpackages__"])
|
||||
|
||||
@@ -57,6 +57,11 @@ _resources = [
|
||||
for r in glob(["src/main/resources/**"])
|
||||
]
|
||||
|
||||
kt_javac_options(
|
||||
name = "javac-options",
|
||||
release = "8",
|
||||
)
|
||||
|
||||
[
|
||||
(
|
||||
kt_kotlinc_options(
|
||||
@@ -102,6 +107,7 @@ _resources = [
|
||||
],
|
||||
exclude = ["src/main/kotlin/utils/versions/**"],
|
||||
) + get_compatilibity_sources(v, "src/main/kotlin/utils/versions"),
|
||||
javac_opts = ":javac-options",
|
||||
kotlinc_opts = ":kotlinc-options-%s" % v,
|
||||
module_name = "codeql-kotlin-extractor",
|
||||
# resource_strip_prefix is very nit-picky: the following makes it work from
|
||||
|
||||
Reference in New Issue
Block a user