org.gradle.kotlin.ktlint-convention
所有者: Gradle
Gradle Kotlin DSL ktlint convention 插件(实验性)
https://github.com/gradle/kotlin-dsl
来源: https://github.com/gradle/kotlin-dsl
使用插件的DSL
plugins {
id("org.gradle.kotlin.ktlint-convention") version "0.1.15"
}
使用旧版插件应用
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org.cn/m2/")
}
}
dependencies {
classpath("gradle.plugin.org.gradle.kotlin:gradle-kotlin-dsl-plugins-experiments:0.1.15")
}
}
apply(plugin = "org.gradle.kotlin.ktlint-convention")
使用插件的DSL
plugins {
id "org.gradle.kotlin.ktlint-convention" version "0.1.15"
}
使用旧版插件应用
buildscript {
repositories {
maven {
url "https://plugins.gradle.org.cn/m2/"
}
}
dependencies {
classpath "gradle.plugin.org.gradle.kotlin:gradle-kotlin-dsl-plugins-experiments:0.1.15"
}
}
apply plugin: "org.gradle.kotlin.ktlint-convention"