Last active
August 28, 2021 15:22
-
-
Save hyoban/e18fc910f045e50e0fb7a37c39030f25 to your computer and use it in GitHub Desktop.
spotless 配置
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id "com.diffplug.spotless" version "5.14.3" | |
} | |
subprojects { | |
apply plugin: "com.diffplug.spotless" | |
spotless { | |
kotlin { | |
target "**/*.kt" | |
targetExclude("$buildDir/**/*.kt") | |
targetExclude("bin/**/*.kt") | |
ktlint("0.42.1") | |
// licenseHeaderFile rootProject.file("spotless/copyright.kt") | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id("com.diffplug.spotless") version "5.14.2" | |
} | |
subprojects { | |
apply(plugin = "com.diffplug.spotless") | |
spotless { | |
kotlin { | |
target("**/*.kt") | |
targetExclude("$buildDir/**/*.kt") | |
targetExclude("bin/**/*.kt") | |
ktlint("0.42.1") | |
// licenseHeaderFile rootProject.file("spotless/copyright.kt") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment