Skip to content

Commit

Permalink
Workaround for diffplug/spotless#1644
Browse files Browse the repository at this point in the history
  • Loading branch information
geiralund committed Aug 18, 2023
1 parent 8bc68e2 commit 592df7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import com.diffplug.spotless.LineEnding
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent

Expand Down Expand Up @@ -123,6 +124,11 @@ spotless {
target("*.gradle.kts", "buildSrc/**/*.kt*")
ktlint()
}

// Workaround for <https://github.com/diffplug/spotless/issues/1644>
// using idea found at
// <https://github.com/diffplug/spotless/issues/1527#issuecomment-1409142798>.
lineEndings = LineEnding.PLATFORM_NATIVE // or any other except GIT_ATTRIBUTES
}

tasks.withType<Test> {
Expand Down

0 comments on commit 592df7e

Please sign in to comment.