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.
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>