Skip to content
This repository has been archived by the owner on Mar 21, 2022. It is now read-only.

Commit

Permalink
Merge pull request #430 from spotify/dxia/upgrade-docker-client
Browse files Browse the repository at this point in the history
Upgrade docker-client dep from 8.14.1 to 8.16.0
  • Loading branch information
davidxia authored Sep 12, 2019
2 parents b1c9f80 + 0ab7e3c commit 6db655f
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ matrix:
- ln -s /etc/ssl/certs/java/cacerts "${JAVA_HOME}/lib/security/cacerts"
- jdk: openjdk10
before_install:
- rm "${JAVA_HOME}/lib/security/cacerts"
- ln -s /etc/ssl/certs/java/cacerts "${JAVA_HOME}/lib/security/cacerts"
- sudo rm "${JAVA_HOME}/lib/security/cacerts"
- sudo ln -s /etc/ssl/certs/java/cacerts "${JAVA_HOME}/lib/security/cacerts"
- jdk: openjdk11

env:
Expand Down
20 changes: 16 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
<dependency>
<groupId>com.spotify</groupId>
<artifactId>docker-client</artifactId>
<version>8.14.1</version>
<version>8.16.0</version>
<classifier>shaded</classifier>
</dependency>
<dependency>
Expand Down Expand Up @@ -226,6 +226,18 @@
<version>1.7.19</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -284,7 +296,7 @@
<executions>
<execution>
<id>validate</id>
<phase>validate</phase>
<phase>none</phase>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<encoding>UTF-8</encoding>
Expand All @@ -304,15 +316,15 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.0</version>
<version>3.0.5</version>
<configuration>
<effort>Max</effort>
<threshold>Low</threshold>
<xmlOutput>true</xmlOutput>
<findbugsXmlOutputDirectory>${project.build.directory}/findbugs
</findbugsXmlOutputDirectory>
<excludeFilterFile>${project.basedir}/findbugs-exclude.xml</excludeFilterFile>
</configuration>
</configuration>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/spotify/docker/BuildMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import com.typesafe.config.ConfigFactory;
import com.typesafe.config.ConfigValue;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.model.Resource;
import org.apache.maven.plugin.MojoExecutionException;
Expand Down Expand Up @@ -778,6 +779,7 @@ private String normalizeDest(final String filePath) {
return dest;
}

@SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE")
private List<String> copyResources(String destination) throws IOException {

final List<String> allCopiedPaths = newArrayList();
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/spotify/docker/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import com.spotify.docker.client.exceptions.DockerException;
import com.spotify.docker.client.ProgressHandler;
import com.spotify.docker.client.messages.ProgressMessage;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.logging.Log;

Expand Down Expand Up @@ -162,6 +163,7 @@ public static void saveImage(DockerClient docker, String imageName,
java.nio.file.Files.copy(is, tarArchivePath, StandardCopyOption.REPLACE_EXISTING);
}

@SuppressFBWarnings("NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE")
public static void writeImageInfoFile(final DockerBuildInformation buildInfo,
final String tagInfoFile) throws IOException {
final Path imageInfoPath = Paths.get(tagInfoFile);
Expand Down

0 comments on commit 6db655f

Please sign in to comment.