user3523268
user3523268

Reputation: 101

Is there a trimmed version of AWS Jar file for S3

I downloaded AWS SDK for Java. The JAR file is around 80MB. Is there a smaller version for just S3. I do not need other stacks and am wonder if I can trim this JAR file down a bit.

Upvotes: 0

Views: 343

Answers (1)

laughedelic
laughedelic

Reputation: 6460

Yes, check the SDK setup instructions. There are artifacts published for every module. So if you only need S3, you can add just it to your Maven project:

  <dependency>
    <groupId>com.amazonaws</groupId>
    <artifactId>aws-java-sdk-s3</artifactId>
    <version>1.11.297</version>
  </dependency>

Or if you're using another build tool, see the linked instructions. You can also find the published artifact on Maven Central: com.amazonaws : aws-java-sdk-s3 : 1.11.297.

Upvotes: 2

Related Questions