Search Gradle plugins

com.doist.gradle.ktlint

Owner: Doist

This plugin is mainly designed to validate the code styles on changed kt files.

https://github.com/Doist/ktlint-gradle-plugin

Version 1.0.0 (latest)

Created 11 January 2022.

This plugin is mainly designed to validate the code styles on changed kt files.

Using the plugins DSL:

plugins {
  id "com.doist.gradle.ktlint" version "1.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.doist.gradle:ktlint:1.0.0"
  }
}

apply plugin: "com.doist.gradle.ktlint"

Using the plugins DSL:

plugins {
  id("com.doist.gradle.ktlint") version "1.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.doist.gradle:ktlint:1.0.0")
  }
}

apply(plugin = "com.doist.gradle.ktlint")

Learn how to apply plugins to subprojects