org.gradle.kotlin-dsl.ktlint-convention
所有者: Gradle
Gradle Kotlin DSL ktlint convention插件
https://github.com/gradle/kotlin-dsl-conventions
源代码: https://github.com/gradle/kotlin-dsl-conventions
使用 plugins DSL
plugins {
id("org.gradle.kotlin-dsl.ktlint-convention") version "0.9.0"
}
使用 旧的插件应用方法
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org.cn/m2/")
}
}
dependencies {
classpath("org.gradle.kotlin:gradle-kotlin-dsl-conventions:0.9.0")
}
}
apply(plugin = "org.gradle.kotlin-dsl.ktlint-convention")
使用 plugins DSL
plugins {
id "org.gradle.kotlin-dsl.ktlint-convention" version "0.9.0"
}
使用 旧的插件应用方法
buildscript {
repositories {
maven {
url "https://plugins.gradle.org.cn/m2/"
}
}
dependencies {
classpath "org.gradle.kotlin:gradle-kotlin-dsl-conventions:0.9.0"
}
}
apply plugin: "org.gradle.kotlin-dsl.ktlint-convention"