From 898ae440c73a606b2ee9687b828f55be71b81cb1 Mon Sep 17 00:00:00 2001 From: Sebastiano Poggi Date: Fri, 20 Oct 2023 09:42:36 +0200 Subject: [PATCH] Exclude generated sources from formatKotlin task --- buildSrc/src/main/kotlin/jewel.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/buildSrc/src/main/kotlin/jewel.gradle.kts b/buildSrc/src/main/kotlin/jewel.gradle.kts index f5f701aa8..8e723aa65 100644 --- a/buildSrc/src/main/kotlin/jewel.gradle.kts +++ b/buildSrc/src/main/kotlin/jewel.gradle.kts @@ -2,6 +2,7 @@ import io.gitlab.arturbosch.detekt.Detekt import org.gradle.api.attributes.Usage +import org.jmailen.gradle.kotlinter.tasks.FormatTask import org.jmailen.gradle.kotlinter.tasks.LintTask plugins { @@ -69,6 +70,11 @@ tasks { } } } + + withType { + exclude { it.file.absolutePath.contains("build/generated") } + } + withType { exclude { it.file.absolutePath.contains("build/generated") }