[JIRA] (JENKINS-59410) any dependency to spring is causing version conflict between shared libraries and jdk-tools plugin spring 2.5X

4 views
Skip to first unread message

t.mnatsakanyan@gmail.com (JIRA)

unread,
Sep 18, 2019, 5:55:02 AM9/18/19
to jenkinsc...@googlegroups.com
tigran mnatsakanyan updated an issue
 
Jenkins / Bug JENKINS-59410
any dependency to spring is causing version conflict between shared libraries and jdk-tools plugin spring 2.5X
Change By: tigran mnatsakanyan
Summary: any transitive dependency to spring , is causing version conflict between shared libraries and jdk-tools plugin spring 2.5X
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

t.mnatsakanyan@gmail.com (JIRA)

unread,
Sep 19, 2019, 5:30:02 AM9/19/19
to jenkinsc...@googlegroups.com
tigran mnatsakanyan commented on Bug JENKINS-59410
 
Re: any dependency to spring is causing version conflict between shared libraries and jdk-tools plugin spring 2.5X

I had a chat with Carlos Sanchez in k8s slack, and very good advice was to go ahead and shade conflicting dependencies with https://maven.apache.org/plugins/maven-shade-plugin or any other plugin supporting shading. That solution worked.

I am leaving the issue open to check if there are more fundamental solutions available, which does not require recompiling to renaming conflicting classes for the confused classloader. Because it's not always your own code appears as a dependency to add a build plugin to it but could be someone else's jar file.

Reply all
Reply to author
Forward
0 new messages