com.diffplug.gradle.spotless
所有者: Ned Twigg
Spotless:使用 Gradle 保持代码整洁
https://github.com/diffplug/spotless
来源: https://github.com/diffplug/spotless
使用 插件 DSL
plugins {
id("com.diffplug.gradle.spotless") version "7.0.0.BETA1"
}
使用 旧版插件应用
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org.cn/m2/")
}
}
dependencies {
classpath("com.diffplug.spotless:spotless-plugin-gradle:7.0.0.BETA1")
}
}
apply(plugin = "com.diffplug.gradle.spotless")
使用 插件 DSL
plugins {
id "com.diffplug.gradle.spotless" version "7.0.0.BETA1"
}
使用 旧版插件应用
buildscript {
repositories {
maven {
url "https://plugins.gradle.org.cn/m2/"
}
}
dependencies {
classpath "com.diffplug.spotless:spotless-plugin-gradle:7.0.0.BETA1"
}
}
apply plugin: "com.diffplug.gradle.spotless"