Skip to content

jenkinsci/docker-java-api-plugin

Folders and files

NameName
Last commit message
Last commit date
Dec 14, 2024
Jun 2, 2024
Mar 20, 2025
May 21, 2023
Apr 5, 2016
Dec 14, 2024
Nov 28, 2023
Apr 5, 2016
Dec 14, 2024
May 6, 2025

Repository files navigation

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>