Tool to remove unnecessary dependencies in a Java project

前端 未结 6 1221
逝去的感伤
逝去的感伤 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:38

    You also can't tell if JARs that you don't import are required dependencies of dependencies. For example, if you use Spring it comes with its own dependencies, even if you don't import or call those classes in your code. I'm ignorant of ProGuard - does it check for those cases?

提交回复
热议问题