From 93e78b688852c7ff5b7459c5f21ae0465f1f7f6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simonas=20Pinevi=C4=8Dius?= Date: Thu, 16 Jan 2025 11:47:03 +0200 Subject: [PATCH] Fix: resource_strip_prefix for dependent projects wixperiments fail to build because resource files doesn't start with a prefix when used as a source dependency --- base/BUILD | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/base/BUILD b/base/BUILD index 75f35502827..0f611e6ca3e 100644 --- a/base/BUILD +++ b/base/BUILD @@ -20,11 +20,19 @@ load( ) load("@rules_kotlin//kotlin:jvm.bzl", "kt_jvm_library") +java_library( + name = "resources", + resource_strip_prefix = package_name() + "/src", + resources = glob(["src/resources/**/*"]), +) + kt_jvm_library( name = "base", - srcs = glob(["src/**/*.java", "src/**/*.kt"]), - resources = glob(["src/resources/**/*"]), - resource_strip_prefix = "base/src", + srcs = glob([ + "src/**/*.java", + "src/**/*.kt", + ]), + resource_jars = [":resources"], visibility = PLUGIN_PACKAGES_VISIBILITY, deps = [ "//common/actions",