Search Gradle plugins

Drop-in replacement for org.jlleitschuh.gradle.ktlint 14.2.0: same DSL, tasks and reports, linting through ktrs, a native port of ktlint 1.8.0 and 2.0.0-ALPHA-4.

https://github.com/Hexay/ktrs

Sources: https://github.com/Hexay/ktrs

Version 0.4.0

Created 06 October 2026.

Drop-in replacement for org.jlleitschuh.gradle.ktlint 14.2.0: same DSL, tasks and reports, linting through ktrs, a native port of ktlint 1.8.0 and 2.0.0-ALPHA-4.

Gradle features compatibility:
Configuration cache ✓
(Incubating) Isolated Projects ?

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.github.hexay.ktrs.ktlint") version "0.4.0"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("io.github.hexay.ktrs.ktlint:io.github.hexay.ktrs.ktlint.gradle.plugin:0.4.0")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("io.github.hexay.ktrs.ktlint")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("io.github.hexay.ktrs.ktlint:io.github.hexay.ktrs.ktlint.gradle.plugin:0.4.0")
      }
    }
    
    apply(plugin = "io.github.hexay.ktrs.ktlint")
  • Applying plugins to all subprojects .