com.github.sherter.google-java-format
所有者: Simon Herter
使用 google-java-format 格式化您的 Java 源代码文件
https://github.com/sherter/google-java-format-gradle-plugin
源代码: https://github.com/sherter/google-java-format-gradle-plugin.git
使用 插件 DSL
plugins {
id("com.github.sherter.google-java-format") version "0.9"
}
使用 旧插件应用
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org.cn/m2/")
}
}
dependencies {
classpath("gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.9")
}
}
apply(plugin = "com.github.sherter.google-java-format")
使用 插件 DSL
plugins {
id "com.github.sherter.google-java-format" version "0.9"
}
使用 旧插件应用
buildscript {
repositories {
maven {
url "https://plugins.gradle.org.cn/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.9"
}
}
apply plugin: "com.github.sherter.google-java-format"