leiningen

2024-06-04T13:10:32.708859Z

if you have a project A that requires a project B, is it possible to only require certain libraries of project B in test/dev profiles?

2024-06-04T13:11:14.824329Z

we have a common library with lots of dependencies, and some of these dependencies are just used in dev/testing, but they still need to be declared in the default profile, and end up in the uberjar when you build the application depending on the library

2024-06-04T13:11:38.700349Z

I was wondering if there was a way, apart from maybe just creating another library for dev/test related helpers/libraries

vemv 2024-06-04T13:28:21.229899Z

At some workplace we used https://github.com/achin/lein-parent which can define a parent profile I believe

vemv 2024-06-04T13:28:48.768229Z

> I was wondering if there was a way, apart from maybe just creating another library for dev/test related helpers/libraries Seems the cleanest approach tbh!

2024-06-04T13:29:35.291029Z

yeah I guess I should just do that instead