com.ncorti.ktfmt.gradle
Owner: Nicola Corti
A Gradle plugin to run ktfmt formatter on your build
https://github.com/cortinico/ktfmt-gradle
Sources: https://github.com/cortinico/ktfmt-gradle
Version 0.21.0 (latest)
Created 02 November 2024.
A Gradle plugin to run ktfmt formatter on your build
Add this plugin to your build using the plugins DSL:
plugins {
id("com.ncorti.ktfmt.gradle") version "0.21.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("com.ncorti.ktfmt.gradle:com.ncorti.ktfmt.gradle.gradle.plugin:0.21.0") }
It can then be applied in the precompiled script plugin:plugins { id("com.ncorti.ktfmt.gradle") }
-
The legacy method of plugin application.
See the relevant documentation for more information.buildscript { repositories { gradlePluginPortal() } dependencies { classpath("com.ncorti.ktfmt.gradle:com.ncorti.ktfmt.gradle.gradle.plugin:0.21.0") } } apply(plugin = "com.ncorti.ktfmt.gradle")
- Applying plugins to all subprojects .