Skip to content

Commit

Permalink
OPS: Spotless formatter added
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderv committed Feb 23, 2024
1 parent b22af2e commit c208b6d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions application/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

plugins {
id("org.springframework.boot")
id("com.diffplug.spotless") version "6.25.0"
}

dependencies {
Expand Down Expand Up @@ -58,3 +59,20 @@ testing {
}
}
}

spotless {
// optional: limit format enforcement to just the files changed by this feature branch
// ratchetFrom("origin/main")

kotlin {
// by default the target is every '.kt' and '.kts` file in the java sourcesets
ktfmt() // has its own section below
licenseHeader(
"""
// SPDX-FileCopyrightText: Contributors to the GXF project
//
// SPDX-License-Identifier: Apache-2.0
""".trimIndent(), "package "
)
}
}

0 comments on commit c208b6d

Please sign in to comment.