I am making a web app using gradle. I used log4j in this app. When I build the project I am getting error...
Your classpath contains 2 copies of log4j library. Exclude one and try again.
Adding this annotation works for me.
@PowerMockIgnore("org.apache.log4j.*")