Search Gradle plugins

Drop-in replacement for com.ncorti.ktfmt.gradle: same DSL and tasks, formatting through ktrs, a native port of ktfmt 0.64 with byte-identical output.

https://github.com/Hexay/ktrs

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

Version 0.5.1 (latest)

Created 09 October 2026.

Drop-in replacement for com.ncorti.ktfmt.gradle: same DSL and tasks, formatting through ktrs, a native port of ktfmt 0.64 with byte-identical output.

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

Add this plugin to your build using the plugins DSL:

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

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:io.github.hexay.ktrs.gradle.plugin:0.5.1")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("io.github.hexay.ktrs")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("io.github.hexay.ktrs:io.github.hexay.ktrs.gradle.plugin:0.5.1")
      }
    }
    
    apply(plugin = "io.github.hexay.ktrs")
  • Applying plugins to all subprojects .