mcohen01 / amazonica

A comprehensive Clojure client for the entire Amazon AWS api.
1.01k stars 201 forks source link

Exclude portions of the aws-sdk #181

Closed jwhitlark closed 8 years ago

jwhitlark commented 8 years ago

Beginning in version 1.9.0, the aws sdk is modular, (see http://docs.aws.amazon.com/AWSSdkDocsJava/latest/DeveloperGuide/java-dg-using-maven.html)

Using the following dependencies, I was able to get s3 calls working:

:dependencies [[org.clojure/clojure "1.7.0"]
               [amazonica "0.3.39" :exclusions [com.amazonaws/aws-java-sdk]]
               [com.amazonaws/aws-java-sdk-core "1.10.28"]
               [com.amazonaws/aws-java-sdk-s3 "1.10.28"]
               [com.amazonaws/aws-java-sdk-cloudsearch "1.10.28"]
               [com.amazonaws/aws-java-sdk-lambda "1.10.28"]]

Which will make amazonica much nicer for some of my use cases, (aws lambda jobs, etc.), as it cuts over 115M off the size of the uberjar.

Is there any reason this wouldn't work in all cases? If not, we should add it to the documentation.

mcohen01 commented 8 years ago

I don't see why it wouldn't work. Although I only see the full AWS SDK adding 35mb to the uberjar (if I just lein new foo and add amazonica as a dep and uberjar it.)

mcohen01 commented 8 years ago

"only 35mb" lol ....JVM developers.....

jwhitlark commented 8 years ago

Oops. Thanks, though. It'll still help.

"Assumptions are like dogs. Mine just bit me."

On Nov 25, 2015, at 6:41 AM, Michael Cohen notifications@github.com wrote:

I don't see why it wouldn't work. Although I only see the full AWS SDK adding 35mb to the uberjar (if I just lein new foo and add amazonica as a dep and uberjar it.)

— Reply to this email directly or view it on GitHub.

mcohen01 commented 8 years ago

removed everything but core a1de64567635de83ff463788e595c736eb215420