Skip to content

Commit 2943d2e

Browse files
jketemaCopilot
andcommitted
Fix Kotlin extractor build with rules_kotlin 2.4.21
Stub the compiler's new coroutines classpath entry and keep javac's JDK 25 compatibility warnings from inheriting the Kotlin target's warnings-as-errors setting. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4c93083 commit 2943d2e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎java/kotlin-extractor/BUILD.bazel‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ _component_registrar_service = (
9191
kt_javac_options(
9292
name = "javac-options",
9393
release = "8",
94+
# Keep javac warnings separate from the Kotlin compiler's warn = "error".
95+
warn = "off",
9496
)
9597

9698
[

‎java/kotlin-extractor/deps.bzl‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def _kotlin_dep_impl(repository_ctx):
2727
"kotlin-stdlib.jar",
2828
"kotlin-reflect.jar",
2929
"kotlin-script-runtime.jar",
30+
"kotlinx-coroutines-core-jvm.jar",
3031
"trove4j.jar",
3132
):
3233
repository_ctx.symlink("empty.zip", jar)

0 commit comments

Comments
 (0)