Closed ieugen closed 2 years ago
So I think I solved this by using exludes.
Do you think it's worth removing aws-java-sdk transitive dependency and making users depend on what they need?
;; force amazonica deps, remove transitives
amazonica/amazonica {:mvn/version "0.3.161"
;; aws-java-sdk has HUGE transitives ~250MB and we need only bits
:exclusions [com.amazonaws/aws-java-sdk
com.amazonaws/amazon-kinesis-client]}
;; bring in only what we need - s3
com.amazonaws/aws-java-sdk-s3 {:mvn/version "1.12.132"}
I found the solution documented https://github.com/mcohen01/amazonica#for-the-memory-constrained .
Hello,
We depend on amazonica library and it brings in a ~ 250MB of java libraries. We only use S3 service and I think this is excessive. I imagine we could add exceptions but those are ~180 jars and it will be quite a big list of exceptions.
Any hints on how to reduce this? I imagine someone could opt-in for a jar instead of opt-out.
I imagine adding this to the docs would be helpful.
Thanks, Eugen