From 3541805f029b9a194b008ff241980b7918491e93 Mon Sep 17 00:00:00 2001 From: Ivan Morgillo Date: Mon, 19 Aug 2024 09:36:47 +0200 Subject: [PATCH] Exclude generated files from formatKotlinMain (#548) exclude generated files from formatKotlinMain Signed-off-by: Ivan Morgillo --- buildSrc/src/main/kotlin/jewel.gradle.kts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/jewel.gradle.kts b/buildSrc/src/main/kotlin/jewel.gradle.kts index c44945fe5..270b69653 100644 --- a/buildSrc/src/main/kotlin/jewel.gradle.kts +++ b/buildSrc/src/main/kotlin/jewel.gradle.kts @@ -75,7 +75,9 @@ tasks { } } - formatKotlinMain { exclude { it.file.absolutePath.contains("build/generated") } } + formatKotlinMain { + exclude { it.file.absolutePath.replace('\\', '/').contains("build/generated") } + } lintKotlinMain { exclude { it.file.absolutePath.replace('\\', '/').contains("build/generated") }