Running and Configuring GMetrics
You can run GMetrics using the supplied Ant Task.
Define the metrics to calculate by Creating a MetricSet.
There is also a Grails GMetrics Plugin and a Griffon GMetrics Plugin.
And the Sonar Groovy Plugin uses GMetrics for its calculation of Cyclomatic Complexity for Groovy source code.
Total and average values for the following metrics are provided:
GMetrics provides the following reports:
Or Create a GMetrics Report with XSLT.
- Groovy version 2.4 or later
- Java 1.6 or later
- The SLF4J API jar and an SLF4J binding jar. See The SLF4J Manual.
Getting GMetrics from the Maven2 Central Repository
For projects built using Maven, GMetrics is now available from the Maven Central Repository.
- groupId = org.gmetrics
- artifactId = GMetrics