Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

apply plugin: "org.jmailen.kotlinter"

Learn how to apply plugins to subprojects