rules_kotlin
rules_kotlin copied to clipboard
Adding a plugin to module makes it ignore x-jvm-default setting
If the target has x-jvm-default setting set (either via toolchain or explicitly), but has any plugin set, the option is going to be ignored.
Here you can find minimal reproducible example: https://github.com/utikeev/bazel-kotlin-jvm-default-issue
Running bazel run //module:main-without-plugin finishes successfully, while bazel run //module:main-with-plugin fails with:
module/JavaImplementation.java:3: error: JavaImplementation is not abstract and does not override abstract method defaultMethod() in Interface
public class JavaImplementation implements Interface {
^
Target //module:main-with-plugin failed to build