Search Gradle plugins

org.cthing.locc

Counts lines of code in a project using the fast and highly accurate locc4j library (https://github.com/cthing/locc4j). Supports over 250 computer languages and properly handles nested comments and embedded languages (e.g. CSS in HTML).

https://github.com/cthing/gradle-locc

Sources: https://github.com/cthing/gradle-locc

Version 1.0.1 (latest)

Created 18 April 2024.

Counts lines of code in a project using the fast and highly accurate locc4j library (https://github.com/cthing/locc4j). Supports over 250 computer languages and properly handles nested comments and embedded languages (e.g. CSS in HTML).

Using the plugins DSL:

plugins {
  id("org.cthing.locc") version "1.0.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.cthing:gradle-locc:1.0.1")
  }
}

apply(plugin = "org.cthing.locc")

Using the plugins DSL:

plugins {
  id "org.cthing.locc" version "1.0.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.cthing:gradle-locc:1.0.1"
  }
}

apply plugin: "org.cthing.locc"

Learn how to apply plugins to subprojects