Skip to content

Commit a02f203

Browse files
committed
Update README to remove the whole SDK import.
1 parent 885b6f5 commit a02f203

File tree

1 file changed

+28
-29
lines changed

1 file changed

+28
-29
lines changed

README.md

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -38,35 +38,6 @@ section of the developer guide.
3838

3939
The recommended way to use the AWS SDK for Java in your project is to consume it from Maven.
4040

41-
#### Whole SDK ####
42-
43-
You can import the whole SDK into your project (includes all services) as follows:
44-
45-
```xml
46-
<dependency>
47-
<groupId>software.amazon.awssdk</groupId>
48-
<artifactId>aws-sdk-java</artifactId>
49-
<version>2.7.5</version>
50-
</dependency>
51-
```
52-
53-
#### Individual Services ####
54-
55-
Alternatively you can add dependencies for the specific services you use only:
56-
57-
```xml
58-
<dependency>
59-
<groupId>software.amazon.awssdk</groupId>
60-
<artifactId>ec2</artifactId>
61-
<version>2.7.5</version>
62-
</dependency>
63-
<dependency>
64-
<groupId>software.amazon.awssdk</groupId>
65-
<artifactId>s3</artifactId>
66-
<version>2.7.5</version>
67-
</dependency>
68-
```
69-
7041
#### Importing the BOM ####
7142

7243
To automatically manage module versions (currently all modules have the same version, but this may not always be the case) we recommend you use the [Bill of Materials][bom] import as follows:
@@ -103,6 +74,34 @@ Then individual models may omit the `version` from their dependency statement:
10374
</dependency>
10475
</dependencies>
10576
```
77+
#### Individual Services ####
78+
79+
Alternatively you can add dependencies for the specific services you use only:
80+
81+
```xml
82+
<dependency>
83+
<groupId>software.amazon.awssdk</groupId>
84+
<artifactId>ec2</artifactId>
85+
<version>2.7.5</version>
86+
</dependency>
87+
<dependency>
88+
<groupId>software.amazon.awssdk</groupId>
89+
<artifactId>s3</artifactId>
90+
<version>2.7.5</version>
91+
</dependency>
92+
```
93+
94+
#### Whole SDK ####
95+
96+
You can import the whole SDK into your project (includes *ALL* services). Please note that it is recommended to only import the modules you need.
97+
98+
```xml
99+
<dependency>
100+
<groupId>software.amazon.awssdk</groupId>
101+
<artifactId>aws-sdk-java</artifactId>
102+
<version>2.7.5</version>
103+
</dependency>
104+
```
106105

107106
See the [Set up the AWS SDK for Java][docs-setup] section of the developer guide for more usage information.
108107

0 commit comments

Comments
 (0)