在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):f2prateek/gradle-android-javafmt-plugin开源软件地址(OpenSource Url):https://github.com/f2prateek/gradle-android-javafmt-plugin开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):Android Javafmt PluginDeprecated: I recommend using https://github.com/diffplug/spotless A plugin that formats your code using google-java-format. UsageApply the plugin in your buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.f2prateek.javafmt:javafmt:0.1.6'
}
}
apply plugin: 'com.f2prateek.javafmt' Run Run ConfigurationTo use 4 space indents instead of 2 space indents add this to your javafmt {
style 'AOSP'
} By default google-java-format version 1.3 is used. To change that you can explicitly add it to your dependencies. dependencies {
javafmt "com.google.googlejavaformat:google-java-format:${version}"
} License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论