jenkinsci / java-client-api

A Jenkins API client for Java
MIT License
896 stars 468 forks source link

Could com.offbytwo.jenkins:jenkins-client-it-docker:0.4.0-SNAPSHOT drop off redundant dependencies to loose weight? #484

Open Celebrate-future opened 3 years ago

Celebrate-future commented 3 years ago

@khmarbaise Hi, I am a user of project com.offbytwo.jenkins:jenkins-client-it-docker:0.4.0-SNAPSHOT. I found that its pom file introduced 30 dependencies. However, among them, 12 libraries (40%) have not been used by your project (the redundant dependencies are listed below). Reduce these useless dependencies can help prevent conflicts between library versions. MeanWhile, it can minimize the total added size to projects. It can also help enable advanced scenarios for users of your package. This PR helps com.offbytwo.jenkins:jenkins-client-it-docker:0.4.0-SNAPSHOT lose weight :) I have tested the revised configuration in my local environment. It is safe to remove the unused libraries. Best regards

Redundant dependencies---

com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile 
org.apache.commons:commons-lang3:jar:3.9:compile 
org.apache.httpcomponents:httpcore:jar:4.4.11:compile 
commons-io:commons-io:jar:2.4:compile 
org.apache.httpcomponents:httpmime:jar:4.5.8:compile 
org.dom4j:dom4j:jar:2.1.3:compile 
commons-lang:commons-lang:jar:2.5:compile 
com.fasterxml.jackson.core:jackson-core:jar:2.10.3:compile 
commons-logging:commons-logging:jar:1.2:compile 
jaxen:jaxen:jar:1.1.6:compile