init
This commit is contained in:
commit
c5ee4e27e6
131 files changed
+9926
No files matched your search
@@ -0,0 +1,31 @@
|
||||
package buildsrc.convention
|
||||
|
||||
import com.diffplug.spotless.LineEnding
|
||||
|
||||
plugins {
|
||||
id("com.diffplug.spotless")
|
||||
}
|
||||
|
||||
spotless {
|
||||
encoding("UTF-8")
|
||||
lineEndings = LineEnding.UNIX
|
||||
kotlinGradle {
|
||||
target("**/*.gradle.kts")
|
||||
ktfmt()
|
||||
trimTrailingWhitespace()
|
||||
endWithNewline()
|
||||
}
|
||||
kotlin {
|
||||
target("**/src/**/*.kt")
|
||||
ktfmt()
|
||||
trimTrailingWhitespace()
|
||||
endWithNewline()
|
||||
}
|
||||
format("misc") {
|
||||
target("**/*.md", "**/*.yml", "**/*.yaml", "**/*.properties")
|
||||
trimTrailingWhitespace()
|
||||
endWithNewline()
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test> { dependsOn("spotlessCheck") }
|
||||
Reference in new issue
Block a user