Skip to content

Commit

Permalink
Exclude generated sources from formatKotlin task
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r committed Oct 20, 2023
1 parent d5d6841 commit 898ae44
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions buildSrc/src/main/kotlin/jewel.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -69,6 +70,11 @@ tasks {
}
}
}

withType<FormatTask> {
exclude { it.file.absolutePath.contains("build/generated") }
}

withType<LintTask> {
exclude { it.file.absolutePath.contains("build/generated") }

Expand Down

0 comments on commit 898ae44

Please sign in to comment.