Search Gradle plugins

com.github.rafaritter44.metrics

This plugin displays the following metrics for your project: LOC, number of classes and average LOC per class.

https://github.com/rafaritter44/java-pocs/tree/master/gradle/plugin

Version 0.1.3 (latest)

Created 18 June 2020.

This plugin displays the following metrics for your project: LOC, number of classes and average LOC per class.

Using the plugins DSL:

plugins {
  id "com.github.rafaritter44.metrics" version "0.1.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.com.github.rafaritter44.metrics:plugin:0.1.3"
  }
}

apply plugin: "com.github.rafaritter44.metrics"

Using the plugins DSL:

plugins {
  id("com.github.rafaritter44.metrics") version "0.1.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.com.github.rafaritter44.metrics:plugin:0.1.3")
  }
}

apply(plugin = "com.github.rafaritter44.metrics")

Learn how to apply plugins to subprojects