duct icon indicating copy to clipboard operation
duct copied to clipboard

Add src/duct_hierarchy.edn to :resource-paths

Open kwrooijen opened this issue 4 years ago • 2 comments

Problem

When building an uberjar all duct_hierarchy.edn files are merged to create a full hierarchy. This works fine until you create an uberjar. Your main project's duct_hierarchy.edn is not included it the merged hierarchy.

Solution

Add src/duct_hierarchy.edn to the uberjar's profile resource-paths. This will make sure it is included when generating the uberjar.

kwrooijen avatar Jan 01 '20 13:01 kwrooijen

This seems like a bug in Leiningen if true. I'll see if I can reproduce this issue.

weavejester avatar Jan 04 '20 02:01 weavejester

@weavejester My colleagues and I came across this issue again. I think it's because the default duct template has no :source-paths definition, and possibly defaults to ["src"] ? We added our own: :source-paths ["src/clj" "src/cljs"] and it broke. We fixed it after changing this to: ["src/clj" "src/cljs" "src"].

kwrooijen avatar Apr 07 '20 11:04 kwrooijen