Search Gradle plugins

Version 0.21.0 (latest)

0.21.0

Created 02 November 2024.

A Gradle plugin to run ktfmt formatter on your build

Using the plugins DSL:

plugins {
  id("com.ncorti.ktfmt.gradle") version "0.21.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.ncorti.ktfmt.gradle:plugin:0.21.0")
  }
}

apply(plugin = "com.ncorti.ktfmt.gradle")

Using the plugins DSL:

plugins {
  id "com.ncorti.ktfmt.gradle" version "0.21.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.ncorti.ktfmt.gradle:plugin:0.21.0"
  }
}

apply plugin: "com.ncorti.ktfmt.gradle"

Learn how to apply plugins to subprojects