Gradle: how to check duplicate class in project?

妖精的绣舞 提交于 2021-01-29 11:23:45

问题


My application can not run normal when it has duplicate class, with problem like 'no such method'.

The project have two class with the same class name , one is from project code, another is from a jar file. how to check this problem when build the gradle project?

src/main/java/com/kxw/Example.java

gradle.build
compile("com.kxw:xxx:1.0")//contain com.kxw.Example

I expect there has a gradle plugin can check duplicate class in project, like 'maven enforcer plugin' from maven project.

来源:https://stackoverflow.com/questions/57380320/gradle-how-to-check-duplicate-class-in-project

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!