We’re excited to announce that with version 1.9.0 of the AWS SDK for Java, we’ve switched to a modular Maven project structure. You can now selectively pick up which components of the SDK you want. For example, if your project uses only Amazon S3 and Amazon DynamoDB, you can configure the dependencies in your project’s
pom.xml to pick up only those components, like this:
<dependencies> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-s3</artifactId> <version>1.9.0</version> </dependency> <dependency> <groupId>com.amazonaws</groupId> <artifactId>aws-java-sdk-dynamodb</artifactId> <version>1.9.0</version> </dependency> </dependencies>
Notice that we're picking up the same version for each of the two components we declare dependencies on. The individual components are versioned together, so you can easily pick compatible versions of different components that you know work together and have been tested together.
Just like before, if you want to pick up the entire SDK, with support for all AWS infrastructure services, you can configure your project’s
pom.xml like this:
<dependencies> <dependency> <groupId>com.amazonaws <artifactId>aws-java-sdk <version>1.9.0 </dependency> </dependencies>
You can also still download the complete AWS SDK for Java as a .zip file.
This was the most requested issue on GitHub, and we were very excited to deliver it to customers!
Do you have other feature requests for the AWS SDK for Java?