Search Gradle plugins

Version 0.7.0 (latest)

Created 30 August 2021.

A Gradle plugin to run ktfmt formatter on your build

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects