org.jlleitschuh.gradle.ktlint
Owner:
Jonathan Leitschuh
Provides a convenient wrapper plugin over the ktlint project.
https://github.com/JLLeitschuh/ktlint-gradle
Sources: https://github.com/JLLeitschuh/ktlint-gradle
Version 14.0.1 (latest)
Created 10 November 2025.
This plugin creates convenient tasks in your Gradle project that run ktlint checks or do code auto format.
Add this plugin to your build using the plugins DSL:
plugins {
id("org.jlleitschuh.gradle.ktlint") version "14.0.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("org.jlleitschuh.gradle.ktlint:org.jlleitschuh.gradle.ktlint.gradle.plugin:14.0.1") }It can then be applied in the precompiled script plugin:plugins { id("org.jlleitschuh.gradle.ktlint") } -
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("org.jlleitschuh.gradle.ktlint:org.jlleitschuh.gradle.ktlint.gradle.plugin:14.0.1") } } apply(plugin = "org.jlleitschuh.gradle.ktlint") - Applying plugins to all subprojects .