Search Gradle plugins

Version 1.22.0 (latest)

Created 12 March 2019.

Lint and formatting for Kotlin using ktlint with configuration-free setup on JVM and Android projects

Using the plugins DSL:

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

Using legacy plugin application:

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

apply plugin: "org.jmailen.kotlinter"

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects