Fork me on GitHub
#polylith
<
2022-04-18
>
Daniel Shriki12:04:14

Hi, I’m using amazonica for aws communication - I’m using only s3 functionality, but all aws-java-sdk is getting into the build which alone is maybe 3 times all my project deps. I know that there is a possibility to use “:exclusions” but it will be a long-long list. is there a way to specify the opposite - say only what to include? Thanks 🙏

pavlosmelissinos13:04:24

I don't think tools.deps.alpha supports that. If you care a lot about the size of your build, I can see a couple of options (besides :exclusions): • check out https://github.com/cognitect-labs/aws-api which seems more lightweight but I haven't actually compared it with amazonica • fork amazonica and keep only the parts you want 😛 You could also maybe take a look at https://ask.clojure.org/ and upvote/create a request for it (I don't think it's been asked before)

steffan16:04:15

With aws-api you explicitly nominate which AWS services to include. See the example which selects S3 : https://github.com/cognitect-labs/aws-api#deps

👍 1
winsome18:04:01

Can I have a base depend on another base?

seancorfield18:04:32

No. For that situation, you will need to factor out the common code into a component.