Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

plugins {
  id "tech.formatter-kt.formatter" version "0.1-SNAPSHOT"
}

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects