changeset 134:afafe40ae5a9

add jaranalyzer plugin
author smith@nwoca.org
date Mon, 17 Jun 2013 17:20:05 +0100
parents 0d8681ff046b
children 51e4ee02d47a
files metrics.gradle
diffstat 1 files changed, 17 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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"
             }
         }
     }