From 2c564cee7322640c3f92812ece47a8a0b6fcf7f0 Mon Sep 17 00:00:00 2001 From: Steve Cosenza Date: Wed, 6 Sep 2023 20:25:57 -0700 Subject: [PATCH 1/2] Add transitive_runtime_jars to KtKvmInfo Add transitive_runtime_jars to KtKvmInfo so we can store the java_info.transitive_runtime_jars for access in the IntelliJ Bazel Plugin's aspect --- kotlin/internal/defs.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/kotlin/internal/defs.bzl b/kotlin/internal/defs.bzl index c01558fd9..ac7e8907a 100644 --- a/kotlin/internal/defs.bzl +++ b/kotlin/internal/defs.bzl @@ -37,6 +37,7 @@ KtJvmInfo = provider( "outputs": "output jars produced by this rule. [intelij-aspect]", "language_version": "version of kotlin used. [intellij-aspect]", "transitive_compile_time_jars": "Returns the transitive set of Jars required to build the target. [intellij-aspect]", + "transitive_runtime_jars": "Returns the transitive set of Jars required to run the target. [intellij-aspect]", "transitive_source_jars": "Returns the Jars containing source files of the current target and all of its transitive dependencies. [intellij-aspect]", "annotation_processing": "Generated annotation processing jars. [intellij-aspect]", }, From 85375c5eb09d9db45f957a0ee6019c404c25e540 Mon Sep 17 00:00:00 2001 From: Steve Cosenza Date: Wed, 6 Sep 2023 20:28:55 -0700 Subject: [PATCH 2/2] Store java_info.transitive_runtime_jars in KtJvmInfo --- kotlin/internal/jvm/compile.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/kotlin/internal/jvm/compile.bzl b/kotlin/internal/jvm/compile.bzl index cc692e96e..6bba48f50 100644 --- a/kotlin/internal/jvm/compile.bzl +++ b/kotlin/internal/jvm/compile.bzl @@ -617,6 +617,7 @@ def kt_jvm_produce_jar_actions(ctx, rule_kind): )], ), transitive_compile_time_jars = java_info.transitive_compile_time_jars, + transitive_runtime_jars = java_info.transitive_runtime_jars, transitive_source_jars = java_info.transitive_source_jars, annotation_processing = annotation_processing, ),