# HG changeset patch # User smith@nwoca.org # Date 1371486005 -3600 # Node ID afafe40ae5a9dd6ceee0d75578c4e88f97019ac2 # Parent 0d8681ff046b92e57797b6b9ef07f786aacb53f2 add jaranalyzer plugin diff -r 0d8681ff046b -r afafe40ae5a9 metrics.gradle --- a/metrics.gradle Thu Jun 06 20:42:46 2013 +0100 +++ b/metrics.gradle Mon Jun 17 17:20:05 2013 +0100 @@ -11,11 +11,23 @@ buildscript { repositories { maven { url 'http://repos.ssdt.nwoca.org/artifactory/gradle-plugins' } - maven { url 'http://repos.ssdt.nwoca.org/artifactory/repository' } - maven { url 'http://repos.ssdt.nwoca.org/artifactory/libs-snapshots' } + maven { url 'http://repos.ssdt.nwoca.org/artifactory/repo' } + } + dependencies { + classpath 'me.davesmith:jaranalyzerplugin:0.1.0-SNAPSHOT' } } + +apply plugin: me.davesmith.gradle.plugins.jaranalyzer.JarAnalyzerPlugin + +jaranalyzer { + dot = true + packageFilter += 'org.slf4j*' + packageFilter += 'groovyx.*' +} + + sonarRunner { sonarProperties { property "sonar.host.url", "http://sonar.ssdt-ohio.org/" @@ -39,7 +51,7 @@ task fullCoverageReport << { ant { - taskdef(name:'jacocoreport', classname: 'org.jacoco.ant.ReportTask', classpath: configurations.jacocoAntRoot.asPath) + taskdef(name: 'jacocoreport', classname: 'org.jacoco.ant.ReportTask', classpath: configurations.jacocoAntRoot.asPath) mkdir dir: "${buildDir.path}/reports/coverage" @@ -66,8 +78,8 @@ } } - xml destfile: "${buildDir.path}/reports/coverage/jacoco.xml" - html destdir: "${buildDir.path}/reports/coverage" + xml destfile: "${buildDir.path}/reports/coverage/jacoco.xml" + html destdir: "${buildDir.path}/reports/coverage" } } }