com.diffplug.spotless
所有者: Ned Twigg
Spotless - 使用 Gradle 保持代码整洁
https://github.com/diffplug/spotless
来源: https://github.com/diffplug/spotless
使用 plugins DSL
plugins {
id("com.diffplug.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.spotless")
使用 plugins DSL
plugins {
id "com.diffplug.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.spotless"