Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.06 KB

README.md

File metadata and controls

35 lines (30 loc) · 1.06 KB

Docker Java API Plugin

This plugin provides the docker-java API to Jenkins plugins. Plugins using docker-java should depend on this plugin and not directly on docker-java.

Only the Apache HttpClient 5 transport is available; the Jersey transport does not work.

Using the API in your plugin

Replace the dependency to com.github.docker-java:docker-java with a dependency to org.jenkins-ci.plugins:docker-java-api. Avoid version conflicts by using the Jenkins plugin BOM rather than depending on a specific version.

  • Before:
    <dependencies>
      ...
      <dependency>
        <groupId>com.github.docker-java</groupId>
        <artifactId>docker-java</artifactId>
        <version>3.4.1</version>
      </dependency>
      ...
    </dependencies>
    
  • After:
    <dependencies>
      ...
      <dependency>
        <groupId>org.jenkins-ci.plugins</groupId>
        <artifactId>docker-java-api</artifactId>
      </dependency>
      ...
    </dependencies>