tools-deps

2023-07-21T02:19:37.685679Z

How can I create a (non uber) jar release with a lib/ directory

seancorfield 2023-07-21T02:41:14.174739Z

Can you explain what you mean about the lib/ directory?

2023-07-21T02:41:40.921139Z

like the datomic sdk , all the dep jars in lib/

2023-07-21T02:41:52.748919Z

or like lein-libdir plug-in

seancorfield 2023-07-21T03:44:08.660009Z

You can't redistribute those so you can't (it shouldn't) try to bundle them with your library.

seancorfield 2023-07-21T03:44:58.482889Z

I assume you're asking about building a library from your own code that depends on those local libs?

2023-07-21T03:46:04.745119Z

‘lib’ is maybe a misnomer , im just trying to distribute my application and uberjar has some unfavorable characteristics

2023-07-21T03:46:33.598999Z

instead of messing with all the logic in trying to merge every dependency jar into a single fatjar

seancorfield 2023-07-21T03:46:53.471569Z

Uberjar is normally how you build an application - can you explain why it doesn't work for you?

2023-07-21T03:47:05.098649Z

i wanted just java -cp lib: app.jar

2023-07-21T03:48:18.144679Z

my specific use case is probably not great, im getting security scanned and the fatjar has vulnerable code that i can’t tell which dependency it’s coming from via Stree

seancorfield 2023-07-21T03:48:19.230369Z

So... Build the (Uber) jar without those deps?

2023-07-21T03:48:42.704919Z

but uberjar have always had problems as i recall

seancorfield 2023-07-21T03:49:06.870099Z

Huh? That is the standard way to build an app for deployment...

2023-07-21T03:50:10.361189Z

i remember running into issues i how it attempts to merge jars together, it was so long ago though, i wish i could be more specific

2023-07-21T03:50:17.870479Z

anyways i get your instincts

2023-07-21T03:50:27.939899Z

let me figure out a different path , thank you 🙏

seancorfield 2023-07-21T03:51:09.529839Z

I would say: try the standard approach and if you have a specific issue, ask about that specific issue...

👍 1
favila 2023-07-21T04:55:23.620659Z

Fwiw I don’t think this request is weird, and I too wish “dir of libs” was more standard because of uberjar edge cases. Datomic does it after all!

👍 1
favila 2023-07-21T04:55:41.618639Z

I asked about this earlier https://clojurians.slack.com/archives/C6QH853H8/p1640216122102000

favila 2023-07-21T05:06:01.058349Z

If you look in the channel at that date but outside that thread, you see some suggestions along these lines https://clojurians.slack.com/archives/C6QH853H8/p1640218580108200

👍 1
favila 2023-07-21T05:06:44.157439Z

Essentially use create-basis then copy. Git deps require some extra care though

dominicm 2023-07-26T09:30:36.492779Z

pack.alpha is designed to support this kind of workflow

🔥 1
2023-07-31T17:59:17.343299Z

another fantastic juxt library , ty @dominicm