Search Gradle plugins

Version 0.20.0

0.20.0

Created 25 August 2024.

A Gradle plugin to run ktfmt formatter on your build

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects