Hi, Gradle plug-in is maintained and documented by the Gradle project, please see: https://docs.gradle.org/current/userguide/jacoco_plugin.html
Regards, -marc > On 26. May 2020, at 16:34, rdatla1...@gmail.com wrote: > > We have gradle project that uses jacocoReport with ant libraries. We have lot > of junit tests that were run under custom tasks which use the jacocoReport. > > > > I want to remove ant libraries and use gradle jacocoReport for coverage. Can > you point me to documentation on how to tell gradle to use junit jar file > that comes with gradle and not use ant libraries. I want to basically point > junit ant jar to junit jar file which comes with gradle. Any help is > appreciated. > > > > Thank you. > > > > test.gradle: > > > > configurations { > > junitAnt > > } > > dependencies { > > junitAnt "junit:junit:${Version.junit}" > > junitAnt("org.apache.ant:ant-junit:${Version.antJunit}") { > > transitive = false > > } > > junitAnt("org.apache.ant:ant-junit4:${Version.antJunit}") { > > transitive = false > > } > > } > > > > ant.taskdef(name: 'jacocoCoverageTask', classname: > 'org.jacoco.ant.CoverageTask', > > classpath: configurations.jacocoAnt.asPath) > > ant.taskdef(name: 'jacocoMergeTask', classname: 'org.jacoco.ant.MergeTask', > > classpath: configurations.jacocoAnt.asPath) > > ant.taskdef(name: 'jacocoReportTask', classname: 'org.jacoco.ant.ReportTask', > > classpath: configurations.jacocoAnt.asPath) > > ant.taskdef(name: 'junit', classname: > 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTask', > > classpath: configurations.junitAnt.asPath) > > > -- > You received this message because you are subscribed to the Google Groups > "JaCoCo and EclEmma Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jacoco+unsubscr...@googlegroups.com > <mailto:jacoco+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/9ba81b04-0ef1-4f57-84ce-835add25fa78%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/9ba81b04-0ef1-4f57-84ce-835add25fa78%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/FF817B69-F780-4AA9-867D-76A0D6AB7A66%40mountainminds.com.