Skip to content

Commit e2ea202

Browse files
authored
Implement Payload Offloading Java Common Library For AWS (#52)
* Refactored SQSExtendedClient to use Payload offloading common lib
1 parent df0c625 commit e2ea202

12 files changed

+3515
-3494
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
target/
2+
.idea/

VERSIONING.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Versioning Policy
2+
3+
We use a three-part X.Y.Z (Major.Minor.Patch) versioning definition, as follows:
4+
* X (Major) version changes are significant and expected to break backwards compatibility.
5+
* Y (Minor) version changes are moderate changes. These include:
6+
* Significant non-breaking feature additions.
7+
* Any change to the version of a dependency.
8+
* Possible backwards-incompatible changes. These changes will be noted and explained in detail in the release notes.
9+
* Z (Patch) version changes are small changes. These changes will not break backwards compatibility.
10+
* Z releases will also include warning of upcoming breaking changes, whenever possible.
11+
12+
## What this means for you
13+
14+
We recommend running the most recent version. Here are our suggestions for managing updates:
15+
16+
* X changes will require some effort to incorporate.
17+
* Y changes will not require significant effort to incorporate.
18+
* If you have good unit and integration tests, these changes are generally safe to pick up automatically.
19+
* Z changes will not require any changes to your code. Z changes are intended to be picked up automatically.
20+
* Good unit and integration tests are always recommended.

pom.xml

+97-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.amazonaws</groupId>
88
<artifactId>amazon-sqs-java-extended-client-lib</artifactId>
9-
<version>1.0.2</version>
9+
<version>1.1.0</version>
1010
<packaging>jar</packaging>
1111
<name>Amazon SQS Extended Client Library for Java</name>
1212
<description>An extension to the Amazon SQS client that enables sending and receiving messages up to 2GB via Amazon S3.
@@ -52,6 +52,12 @@
5252
<version>${aws-java-sdk.version}</version>
5353
</dependency>
5454

55+
<dependency>
56+
<groupId>software.amazon.payloadoffloading</groupId>
57+
<artifactId>payloadoffloading-common</artifactId>
58+
<version>1.0.0</version>
59+
</dependency>
60+
5561
<dependency>
5662
<groupId>junit</groupId>
5763
<artifactId>junit</artifactId>
@@ -73,12 +79,100 @@
7379
<artifactId>maven-compiler-plugin</artifactId>
7480
<version>3.2</version>
7581
<configuration>
76-
<source>1.7</source>
77-
<target>1.7</target>
82+
<source>1.8</source>
83+
<target>1.8</target>
7884
<encoding>UTF-8</encoding>
7985
</configuration>
8086
</plugin>
8187
</plugins>
8288
</pluginManagement>
89+
<plugins>
90+
<plugin>
91+
<groupId>org.apache.maven.plugins</groupId>
92+
<artifactId>maven-source-plugin</artifactId>
93+
<version>2.2.1</version>
94+
<executions>
95+
<execution>
96+
<id>attach-sources</id>
97+
<goals>
98+
<goal>jar-no-fork</goal>
99+
</goals>
100+
</execution>
101+
</executions>
102+
</plugin>
103+
<plugin>
104+
<groupId>org.apache.maven.plugins</groupId>
105+
<artifactId>maven-javadoc-plugin</artifactId>
106+
<version>2.9.1</version>
107+
<executions>
108+
<execution>
109+
<id>attach-javadocs</id>
110+
<goals>
111+
<goal>jar</goal>
112+
</goals>
113+
<configuration>
114+
<!--
115+
TODO-RS: Java 8 is more strict about some javadoc tags.
116+
We'll need to update quite a few to remove this workaround.
117+
-->
118+
<additionalparam>-Xdoclint:none</additionalparam>
119+
</configuration>
120+
</execution>
121+
</executions>
122+
</plugin>
123+
<plugin>
124+
<groupId>org.sonatype.plugins</groupId>
125+
<artifactId>nexus-staging-maven-plugin</artifactId>
126+
<version>1.6.7</version>
127+
<extensions>true</extensions>
128+
<configuration>
129+
<serverId>ossrh</serverId>
130+
<nexusUrl>https://aws.oss.sonatype.org</nexusUrl>
131+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
132+
</configuration>
133+
</plugin>
134+
</plugins>
83135
</build>
136+
137+
<profiles>
138+
<profile>
139+
<id>publishing</id>
140+
141+
<distributionManagement>
142+
<snapshotRepository>
143+
<id>ossrh</id>
144+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
145+
</snapshotRepository>
146+
<repository>
147+
<id>ossrh</id>
148+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
149+
</repository>
150+
</distributionManagement>
151+
152+
<build>
153+
<plugins>
154+
<plugin>
155+
<groupId>org.apache.maven.plugins</groupId>
156+
<artifactId>maven-gpg-plugin</artifactId>
157+
<version>1.6</version>
158+
<executions>
159+
<execution>
160+
<id>sign-artifacts</id>
161+
<phase>verify</phase>
162+
<goals>
163+
<goal>sign</goal>
164+
</goals>
165+
<configuration>
166+
<gpgArguments>
167+
<gpgArgument>--pinentry-mode</gpgArgument>
168+
<gpgArgument>loopback</gpgArgument>
169+
</gpgArguments>
170+
</configuration>
171+
</execution>
172+
</executions>
173+
</plugin>
174+
</plugins>
175+
</build>
176+
</profile>
177+
</profiles>
84178
</project>

0 commit comments

Comments
 (0)