Skip to content

Commit

Permalink
Upgrade dependencies to support future migration to Java 9.
Browse files Browse the repository at this point in the history
1. Migrated from FindBugs to SpotBugs
2. Upgraded any dependencies that no longer worked on Java 9
3. Added explicit dependency on javax annotations for @generated annotation access.
4. Fixed a warning from SpotBugs that was not caught by FindBugs.
  • Loading branch information
millems committed Nov 2, 2017
1 parent e7055e4 commit 777022d
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<artifactId>build-tools</artifactId>
<name>AWS Java SDK :: Build Tools</name>
<version>1.0</version>
<description>This package holds the resources used for checkstyle and findbugs.
<description>This package holds the resources used for checkstyle and spotbugs.
</description>

<build>
Expand Down
2 changes: 1 addition & 1 deletion bundle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<version>3.1.0</version>
<configuration>
<artifactSet>
<includes>
Expand Down
6 changes: 3 additions & 3 deletions codegen-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
<dependency>
<artifactId>maven-plugin-api</artifactId>
<groupId>org.apache.maven</groupId>
<version>3.3.9</version>
<version>3.5.0</version>
</dependency>
<dependency>
<artifactId>maven-plugin-annotations</artifactId>
<groupId>org.apache.maven.plugin-tools</groupId>
<version>3.4</version>
<version>3.5</version>
</dependency>
<dependency>
<artifactId>maven-project</artifactId>
Expand All @@ -68,7 +68,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.4</version>
<version>3.5</version>
<executions>
<execution>
<id>default-descriptor</id>
Expand Down
4 changes: 4 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
</description>
<url>https://aws.amazon.com/sdkforjava</url>
<dependencies>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
Expand Down
21 changes: 13 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<jackson.version>2.9.1</jackson.version>
<ion.java.version>1.0.2</ion.java.version>
<junit.version>4.12</junit.version>
<easymock.version>3.4</easymock.version>
<easymock.version>3.5</easymock.version>
<commons.lang.version>3.4</commons.lang.version>
<wiremock.version>1.55</wiremock.version>
<slf4j.version>1.7.25</slf4j.version>
Expand All @@ -90,7 +90,7 @@
<commons.io.version>2.5</commons.io.version>
<mockito.version>1.10.19</mockito.version>
<assertj.version>3.8.0</assertj.version>
<equalsverifier.version>2.3.1</equalsverifier.version>
<equalsverifier.version>2.3.3</equalsverifier.version>
<guava.version>19.0</guava.version>
<netty.version>4.1.13.Final</netty.version>
<unitils.version>3.3</unitils.version>
Expand Down Expand Up @@ -303,6 +303,11 @@
<artifactId>jmespath-jackson</artifactId>
<version>0.2.0</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.1</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -395,9 +400,9 @@
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.5</version>
<groupId>com.github.hazendaz.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>3.1.0-RC4</version>
<dependencies>
<dependency>
<groupId>software.amazon.awssdk</groupId>
Expand All @@ -418,7 +423,7 @@
<failOnError>true</failOnError>
<fork>false</fork>
<findbugsXmlOutput>true</findbugsXmlOutput>
<excludeFilterFile>software/amazon/awssdk/findbugs-suppressions.xml</excludeFilterFile>
<excludeFilterFile>software/amazon/awssdk/spotbugs-suppressions.xml</excludeFilterFile>
<threshold>Low</threshold>
<effort>Max</effort>
</configuration>
Expand Down Expand Up @@ -488,8 +493,8 @@
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<groupId>com.github.hazendaz.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
</plugin>

</plugins>
Expand Down
6 changes: 3 additions & 3 deletions services/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,10 @@
</executions>
</plugin>

<!-- Disable findbugs for service clients to speed up the build. -->
<!-- Disable spotbugs for service clients to speed up the build. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<groupId>com.github.hazendaz.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* Loads the test specification from it's JSON representation. Assumes the JSON files are in the
* AwsDrSharedSdk package under /test/protocols.
*/
public class ProtocolTestSuiteLoader {
public final class ProtocolTestSuiteLoader {

private static final String RESOURCE_PREFIX = "/software/amazon/awssdk/protocol/suites/";
private static final ObjectMapper MAPPER = new ObjectMapper()
Expand Down

0 comments on commit 777022d

Please sign in to comment.