This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-18
Channels
- # announcements (1)
- # babashka (39)
- # babashka-sci-dev (59)
- # beginners (60)
- # calva (14)
- # circleci (1)
- # clj-kondo (16)
- # clj-on-windows (1)
- # clojure (95)
- # clojure-europe (5)
- # clojure-norway (2)
- # clojurescript (34)
- # conjure (2)
- # core-async (55)
- # datomic (4)
- # emacs (54)
- # holy-lambda (5)
- # hyperfiddle (2)
- # interop (4)
- # lsp (8)
- # malli (3)
- # nrepl (4)
- # off-topic (34)
- # polylith (5)
- # reitit (3)
- # releases (2)
- # shadow-cljs (85)
- # specter (2)
- # testing (8)
- # tools-deps (12)
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 🙏
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)
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
No. For that situation, you will need to factor out the common code into a component
.