I\'m new bee to Gradle. Have custom JUnit Listener, which reads the custom annotation data and generates report and need to configure it as part of Gradle. Is there anyway t
I’m afraid, there is currently no support for JUnit RunListeners in Gradle. There is only an open ticket requesting that feature: https://github.com/gradle/gradle/issues/1330
As someone has mentioned in the comments on that ticket, “the primary issue […] is the absence of TestDescriptor.getAnnotations()
” in Gradle; otherwise you might have been able to rewrite your RunListener
as a Gradle TestListener
. So unless I’ve missed something when skimming through the ticket, it seems that you are mostly out of luck at the moment :-(