You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gradle will automatically resolve the correct version of your SDK dependencies using the information
44
-
from the BOM.
45
-
46
-
You can also refer to the *AWS Code Catalog* to learn what dependencies to use for a given AWS service. Refer to the POM file under a specific service example.
47
-
For example, if you are interested in the dependencies for the AWS S3 service (as shown in the previous dependencies example), see the :sdk-examples-java-s3:`complete example <GetAcl.java>` on GitHub. (Look at the pom under /java/example_code/s3).
58
+
Gradle automatically resolves the correct version of your SDK dependencies using the information from the BOM.
48
59
49
-
Here's the complete :file:`build.gradle` file:
60
+
The following is an example of a complete :file:`build.gradle` file that includes a dependency for |S3|:
50
61
51
62
.. code-block:: groovy
52
63
@@ -62,18 +73,27 @@ Here's the complete :file:`build.gradle` file:
Gradle versions prior to 4.6 lack of native BOM support, so Spring's `dependency management plugin
71
-
<https://github.com/spring-gradle-plugins/dependency-management-plugin>`_ for Gradle can be used
72
-
to import the SDK's Maven Bill of Materials (BOM) to manage SDK dependencies for your project.
81
+
.. note:: Replace the dependency for |S3| above with the dependency or dependencies of the Amazon service(s) you will be using in your project. The modules (dependencies) that are managed by the |sdk-java| BOM are listed on Maven Central (https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-bom/latest).
82
+
83
+
84
+
Project setup for Gradle versions prior to 4.6
85
+
===============
86
+
87
+
Gradle versions prior to 4.6 lack native BOM support. To manage |sdk-java| dependencies for your project,
88
+
use Spring's `dependency management plugin
89
+
<https://github.com/spring-gradle-plugins/dependency-management-plugin>`_ for Gradle to import the SDK's Maven Bill of Materials (BOM).
73
90
74
-
.. topic:: To configure the SDK for Gradle prior 4.6
91
+
.. note:: Replace *1.11.X* in the build file examples below with a valid version of the |sdk-java|. Find the latest version in the
92
+
`AWS SDK for Java 1.11.x Reference <https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/index.html>`_
75
93
76
-
#. Add the dependency management plugin to your :file:`build.gradle` file
94
+
.. topic:: To configure the SDK for Gradle versions prior to 4.6:
95
+
96
+
#. Add the dependency management plugin to your :file:`build.gradle` file.
77
97
78
98
.. code-block:: groovy
79
99
@@ -82,40 +102,38 @@ to import the SDK's Maven Bill of Materials (BOM) to manage SDK dependencies for
.. note:: For more detail about specifying SDK dependencies using the BOM, see
151
-
:doc:`setup-project-maven`.
168
+
.. note:: Replace the dependency for |S3| above with the dependency or dependencies of the Amazon service(s) you will be using in your project. The modules (dependencies) that are managed by the |sdk-java| BOM are listed on Maven Central (https://mvnrepository.com/artifact/com.amazonaws/aws-java-sdk-bom/latest).
169
+
170
+
For more detail about specifying SDK dependencies using the BOM, see
0 commit comments