Skip to content

Commit 7b69210

Browse files
committed
Configure line endings for Spotless explicitly
1 parent db6957e commit 7b69210

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

gradle/plugins/common/src/main/kotlin/junitbuild.spotless-conventions.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import com.diffplug.spotless.LineEnding
12
import junitbuild.extensions.requiredVersionFromLibs
23

34
plugins {
@@ -67,6 +68,10 @@ spotless {
6768
endWithNewline()
6869
}
6970
}
71+
72+
// Explicitly configure line endings to avoid Spotless to search for .gitattributes file
73+
// see https://github.com/gradle/gradle/issues/25469#issuecomment-3444231151
74+
lineEndings = LineEnding.UNIX
7075
}
7176

7277
tasks {

0 commit comments

Comments
 (0)