Gradle Junit not working, but work in maven


(F K) #1

I am migrating from maven to gradle, however running junit in gradle result is not same as in maven.
Some tests are failing in gradle but they work in maven.

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IllegalArgumentException: Name for argument type [java.lang.String] not available, and parameter name information not found in class file either.

Any idea?