Does tools.build support any option to mark certain deps as :provided like lein does? https://leiningen.org/profiles.html#default-profiles
The :provided profile is used to specify dependencies that should be available during jar creation, but not propagated to other code that depends on your project. These are dependencies that the project assumes will be provided by whatever environment the jar is used in, but are needed during the development of the project. This is often used for frameworks like Hadoop that provide their own copies of certain libraries.no, not currently
thanks Alex
one kind of similar thing you can do is use a different basis when you compile or whatever vs when you write-pom
like you could have an alias that adds deps needed only for compilation or one that removes (via nil coord) libs not needed at runtime
great yea I saw your suggestion about the same in the clj forum and that makes sense. Wasn’t clear on how to omit a dep, I’ll try nil coords
Had the same problem and found an extensible solution using an alias that has all the provided deps, then update the pom.xml in build.clj https://github.com/matterandvoid-space/eql/blob/main/build.clj
having to do this reminds me of this phenomenon https://en.wikipedia.org/wiki/Desire_path