Skip to content

Commit a375ca2

Browse files
authored
build: improve configuration cache behavior by using stable line endings (#339)
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
1 parent 6379379 commit a375ca2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/kotlin/org.hiero.gradle.check.spotless.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// SPDX-License-Identifier: Apache-2.0
2+
import com.diffplug.spotless.LineEnding
23
import org.hiero.gradle.environment.EnvAccess
34

45
plugins {
@@ -7,6 +8,9 @@ plugins {
78
}
89

910
spotless {
11+
// Improve configuration cache behavior by using stable line endings
12+
// https://github.com/gradle/gradle/issues/25469#issuecomment-3444231151
13+
lineEndings = LineEnding.UNIX
1014
if (EnvAccess.isGitRepositoryWithMainBranch(layout.projectDirectory, providers)) {
1115
// limit format enforcement to just the files changed by this feature branch
1216
ratchetFrom("origin/main")

0 commit comments

Comments
 (0)