# HG changeset patch # User smith@nwoca.org # Date 1351796229 -3600 # Node ID 5e06e0629f8508a2b87c251db92743dbf396840e # Parent 8f3ba3b811bff0bdb2a19be98b83268c14daec6e correct groovy language setting and force profile name diff -r 8f3ba3b811bf -r 5e06e0629f85 metrics.gradle --- a/metrics.gradle Thu Nov 01 15:45:40 2012 +0100 +++ b/metrics.gradle Thu Nov 01 19:57:09 2012 +0100 @@ -32,6 +32,9 @@ dynamicAnalysis = "reuseReports" sourceEncoding = "UTF-8" } + withGlobalProperties { props -> + props["sonar.language"] = "grvy" + } } class SsdtSonarSettings extends BuildAdapter implements BuildListener { @@ -47,11 +50,15 @@ sonar { project { - language = usesGroovy ? 'grvy' : 'java' + language = usesGroovy ? 'groovy' : 'java' dynamicAnalysis = "reuseReports" sourceEncoding = "UTF-8" coberturaReportPath = file("${reporting.baseDir}/cobertura/coverage.xml") withProjectProperties { props -> + if (usesGroovy) { + println "setting groovy profile on $p" + props['sonar.profile'] = 'SSDT Groovy Way' + } props['sonar.cobertura.reportPath'] = "${reporting.baseDir}/cobertura/coverage.xml" props["sonar.cpd.skip"] = true props['sonar.language'] = usesGroovy ? 'grvy' : 'java' @@ -78,7 +85,7 @@ sonar { project { - language = usesGroovy ? 'grvy' : 'java' + language = usesGroovy ? 'groovy' : 'java' dynamicAnalysis = "reuseReports" sourceEncoding = "UTF-8" withProjectProperties { props ->