Skip to content

Commit

Permalink
Fix: resource_strip_prefix for dependent projects
Browse files Browse the repository at this point in the history
wixperiments fail to build because resource files doesn't start with a prefix when used as a source dependency
  • Loading branch information
simuons authored Jan 16, 2025
1 parent a00994d commit 93e78b6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions base/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 93e78b6

Please sign in to comment.