From c7051ff77f4d2a1b5312a37b32e81f4919adccff Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Fri, 12 Jun 2026 10:59:16 +0200 Subject: [PATCH] for monorepo when compiling with rules_kotlin force ijar-produced java ABI to match the rules_jvm logic (MRI-4417) -- this does not seem to affect build times much (full rebuild runs even a bit faster), but it does make a differenct whether non-private bridge methods are retained in ABI content. This flags affects only compilation with upsteam rules_kotlin GitOrigin-RevId: b61b65b6c126372a54f08fe65905dd311a6ee29d --- common.bazelrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.bazelrc b/common.bazelrc index dd2e35d667c3..34dabd091a9a 100644 --- a/common.bazelrc +++ b/common.bazelrc @@ -109,6 +109,10 @@ build:windows --@rules_kotlin//kotlin/settings:jvm_emit_jdeps=False # Prune transitive deps to match jvm_library behavior and avoid classpath conflicts common --@rules_kotlin//kotlin/settings:experimental_prune_transitive_deps=True +# Force ijar ABIs instead of turbine source-level header jars, effective when compiling with upstream rules_kotlin +# Turbine omits synthetic bridge methods, while ijar (of the full javac output) keeps the bridges +build --nojava_header_compilation + # https://bazel.build/docs/bazel-and-java#config-build-tools-java # A second pair of JDK and JVM used to build and execute tools, which are used in the build process, but are not in the build results. # That JDK and JVM are controlled using --tool_java_language_version and --tool_java_runtime_version