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 2.0.0 (latest)

2.0.0

Created 27 October 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).

Add this plugin to your build using the plugins DSL:

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

See also:

  • The legacy method of plugin application.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("org.cthing:gradle-locc:2.0.0")
      }
    }
    
    apply(plugin = "org.cthing.locc")
  • Applying plugins to all subprojects .