Search Gradle plugins

Using the plugins DSL:

plugins {
  id("tech.formatter-kt.formatter") version "0.7.9"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.tech.formatter-kt:plugin:0.7.9")
  }
}

apply(plugin = "tech.formatter-kt.formatter")

Using the plugins DSL:

plugins {
  id "tech.formatter-kt.formatter" version "0.7.9"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.tech.formatter-kt:plugin:0.7.9"
  }
}

apply plugin: "tech.formatter-kt.formatter"

Learn how to apply plugins to subprojects