commons-collections4 v4.x API Wrapper

Jenkins Plugin GitHub release (latest by date)

This plugin provides Commons Collections 4.x to Jenkins Plugins.

Version will be "<commons-collections version>_<plugin version>", so it is clear what upstream dependency is being offered and so the plugin can be patched by "plugin version" if required.

How to introduce to your plugin

Plugins directly depending on commons-collections4

Replace the dependency to org.apache.commons:commons-collections4 with the dependency to commons-collections4-api. Avoid version conflicts by using the Jenkins plugin BOM rather than depending on a specific version.

Before:

    <dependencies>
      ...
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-collections4</artifactId>
        <version>4.5.0</version>
      </dependency>
      ...
    </dependencies>

After:

    <dependencies>
      ...
      <dependency>
        <groupId>io.jenkins.plugins</groupId>
        <artifactId>commons-collections4-api</artifactId>
      </dependency>
      ...
    </dependencies>