Tool to remove unnecessary dependencies in a Java project

前端 未结 6 1235
逝去的感伤
逝去的感伤 2020-12-03 04:18

I have a Java project that currently has a lot of JARs in its libraries directory, which are all included in the resulting package when building. I know, however, that some

6条回答
  •  孤街浪徒
    2020-12-03 04:54

    I wrote a small eclipse plugin that takes an existing java project from the workspace. For every classpath entry of the projects raw classpath it removes it from the projects raw classpath and builds the project. If no problem markers with severity error appear on the project, it permanently removes the classpath entry from projects raw classpath.

    I'm not able to share that plugin, but that is not too much work to implement it yourself with the links to the api given above.

提交回复
热议问题