Skip to content

Commit e2c7fc0

Browse files
committed
Add 2.1 capabilities
1 parent 7a13ebc commit e2c7fc0

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

src/main/kotlin/io/bazel/kotlin/generate/BUILD.bazel

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
load("//kotlin:jvm.bzl", "kt_jvm_binary", "kt_jvm_library")
22

3+
# Work around neverlink.
4+
java_import(
5+
name = "kotlinc_jar",
6+
jars = [
7+
"@com_github_jetbrains_kotlin//:kotlin-compiler",
8+
],
9+
deps = [],
10+
)
11+
312
kt_jvm_library(
413
name = "kotlin_release_options_lib",
514
srcs = glob(["**/*.kt"]),
615
deps = [
7-
"//kotlin/compiler:kotlin-compiler",
16+
":kotlinc_jar",
817
"//kotlin/compiler:kotlin-reflect",
918
],
1019
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2024 The Bazel Authors. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
KOTLIN_OPTS = [
15+
16+
]

0 commit comments

Comments
 (0)