tasks Ġ{ ĊĠĠĠ Ġnamed < J aco co Report >(" jac oco Test Report ") Ġ{ ĊĠĠĠĠĠĠĠ Ġgroup Ġ= Ġ" Reporting " ĊĠĠĠĠĠĠĠ Ġdescription Ġ= Ġ" Generate ĠJ aco co Ġcoverage Ġreports Ġafter Ġrunning Ġtests ." ĊĠĠĠĠĠĠĠ Ġadditional Source Dirs . from ( files ( project . the < Source Set Container >() [" main "]. all Java . src Dirs )) ĊĠĠĠĠĠĠĠ Ġreports Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġxml . isEnabled Ġ= Ġtrue ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcsv . isEnabled Ġ= Ġfalse ĊĠĠĠĠĠĠĠĠĠĠĠ Ġhtml . isEnabled Ġ= Ġtrue ĊĠĠĠĠĠĠĠĠĠĠĠ Ġhtml . destination Ġ= Ġfile ("${ build Dir }/ jac oco Html ") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks . named (" check "). get (). depends On ( tasks . named (" jac oco Test Report "))