Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

apply plugin: "org.jmailen.kotlinter"

Learn how to apply plugins to subprojects