Search Gradle plugins

Using the plugins DSL:

plugins {
  id "org.jmailen.kotlinter" version "2.1.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.jmailen.gradle:kotlinter-gradle:2.1.1"
  }
}

apply plugin: "org.jmailen.kotlinter"

Using the plugins DSL:

plugins {
  id("org.jmailen.kotlinter") version "2.1.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.jmailen.gradle:kotlinter-gradle:2.1.1")
  }
}

apply(plugin = "org.jmailen.kotlinter")

Learn how to apply plugins to subprojects