30 lines
855 B
Kotlin
30 lines
855 B
Kotlin
plugins {
|
|
id("com.diffplug.spotless") version "6.22.0"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
spotless {
|
|
encoding("UTF-8")
|
|
java {
|
|
target("**/*.java")
|
|
toggleOffOn("formatter:off", "formatter:on") // same as intellij
|
|
licenseHeader("""
|
|
//<editor-fold defaultstate="collapsed" desc="Preamble">
|
|
/* SPDX-License-Identifier: MIT */
|
|
/* (C) Copyright \${'$'}YEAR OPITZ CONSULTING Deutschland GmbH */
|
|
//</editor-fold>
|
|
""".trimIndent()) //
|
|
targetExclude("build/generated/**", "build/generated-async-api/**")
|
|
palantirJavaFormat() // Intellij Plugin available
|
|
}
|
|
kotlin {
|
|
target("**/*.kt", "**/*.kts")
|
|
// by default the target is every ".kt" and ".kts` file in the java sourcesets
|
|
ktfmt() // intellij plugin available
|
|
}
|
|
}
|
|
|