Help in running gradle jacocoReport

I am using jacocoTestReport to run the junit tests.

I am getting error on structure below…

Could not find method structure() for arguments [{name=server}, test_7wgpt1x4jrbmwta3dq7s13mzu$_run_closure47$_closure106$_closure107$_closure109@566753d9] on ConfigurableReport set of type org.gradle.internal.jacoco.JacocoReportsContainerImpl.

Here is the jacocoTestReport

jacocoTestReport {
reports {
structure(name: ‘server’) {
classfiles {
files(Product.stageBuild, includes: ‘/*.class’, excludes: 'android//.class’)
}
sourcefiles {
files(project(’:java’).projectDir, includes: '**/
.java’, excludes: ‘android/**/.java’)
}
}
executionData(Product.jacocoExecutiondata)
executionData('com.belmonttech.
’)
executionData("{Product.jacocoExecutiondata}/{name}.exec")
html.destination file("${Product.stageBuild}/reports/jacoco.html")
}
onlyIf = {
true
}
}