io.github.usefulness.ktlint-gradle-plugin
所有者: Mateusz Kwieciński
使用 ktlint 在 JVM 和 Android 项目的无配置设置中进行 Kotlin 编码风格检测和格式化
https://github.com/usefulness/ktlint-gradle-plugin
源代码: https://github.com/usefulness/ktlint-gradle-plugin
使用 插件 DSL
plugins {
id("io.github.usefulness.ktlint-gradle-plugin") version "0.9.0"
}
使用 旧版插件应用
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org.cn/m2/")
}
}
dependencies {
classpath("io.github.usefulness:ktlint-gradle-plugin:0.9.0")
}
}
apply(plugin = "io.github.usefulness.ktlint-gradle-plugin")
使用 插件 DSL
plugins {
id "io.github.usefulness.ktlint-gradle-plugin" version "0.9.0"
}
使用 旧版插件应用
buildscript {
repositories {
maven {
url "https://plugins.gradle.org.cn/m2/"
}
}
dependencies {
classpath "io.github.usefulness:ktlint-gradle-plugin:0.9.0"
}
}
apply plugin: "io.github.usefulness.ktlint-gradle-plugin"