Closed MorganRoff-UnlikelyAI closed 6 months ago
Also I'm using version 1.9.0
of rules_kotlin.
I resolved this by adding the following flags in .bazelrc: --tool_java_language_version=17 --tool_java_runtime_version=local_jdk_17
I previously had only the non tool_
version of these flags set to use Java 17, which was sufficient to build Java-only libraries, but I seem to need the tool_
prefix flags too when building Kotlin libraries.
Hello, I have a
kt_jvm_library
rule that depends on ajava_library
rule. In the sources for thatjava_library
I define a Javarecord
type. I can build thejava_library
successfully, but when I try to build thekt_jvm_library
, I get an error like this:I found this similar issue about strict transitive dependencies, but that seems resolved. I'm wondering if perhaps this is related to my toolchain setup?
My toolchain looks like this: