com.palantir.java-format-spotless
如果应用了spotless,则配置一个使用palantir-java-format格式化的Java步骤。
https://github.com/palantir/palantir-java-format/
来源: https://github.com/palantir/palantir-java-format/
使用plugins DSL
plugins {
id("com.palantir.java-format-spotless") version "2.50.0"
}
使用旧版插件应用
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org.cn/m2/")
}
}
dependencies {
classpath("com.palantir.javaformat:gradle-palantir-java-format:2.50.0")
}
}
apply(plugin = "com.palantir.java-format-spotless")
使用plugins DSL
plugins {
id "com.palantir.java-format-spotless" version "2.50.0"
}
使用旧版插件应用
buildscript {
repositories {
maven {
url "https://plugins.gradle.org.cn/m2/"
}
}
dependencies {
classpath "com.palantir.javaformat:gradle-palantir-java-format:2.50.0"
}
}
apply plugin: "com.palantir.java-format-spotless"