comparison metrics.gradle @ 108:bb3fa722df51

USASR-819: Update metrics.gradle to use reporting.baseDir instead of deprecated reportsDir
author springer@nwoca.org
date Fri, 15 Jun 2012 18:58:31 +0100
parents f36eeb411845
children 8f3ba3b811bf
comparison
equal deleted inserted replaced
107:167745cd8af9 108:bb3fa722df51
47 sonar { 47 sonar {
48 project { 48 project {
49 language = usesGroovy ? 'grvy' : 'java' 49 language = usesGroovy ? 'grvy' : 'java'
50 dynamicAnalysis = "reuseReports" 50 dynamicAnalysis = "reuseReports"
51 sourceEncoding = "UTF-8" 51 sourceEncoding = "UTF-8"
52 coberturaReportPath = file("$reportsDir/cobertura/coverage.xml") 52 coberturaReportPath = file("${reporting.baseDir}/cobertura/coverage.xml")
53 withProjectProperties { props -> 53 withProjectProperties { props ->
54 props['sonar.cobertura.reportPath'] = "$reportsDir/cobertura/coverage.xml" 54 props['sonar.cobertura.reportPath'] = "${reporting.baseDir}/cobertura/coverage.xml"
55 props["sonar.cpd.skip"] = true 55 props["sonar.cpd.skip"] = true
56 } 56 }
57 } 57 }
58 } 58 }
59 59