Skip to content

Commit

Permalink
Fix: resource_strip_prefix for dependent projects (#89)
Browse files Browse the repository at this point in the history
* 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

most likely it's a bug of rules_kotlin since rules_java handles this
  • Loading branch information
simuons authored and WixBuildServer committed Jan 18, 2025
1 parent df47a29 commit b32b25f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions base/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ 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",
resource_jars = [":resources"],
visibility = PLUGIN_PACKAGES_VISIBILITY,
deps = [
"//common/actions",
Expand Down

0 comments on commit b32b25f

Please sign in to comment.