Skip to content

Commit

Permalink
chore(gradle): avoid duplication file reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Distractic committed Jun 15, 2024
1 parent f6fc064 commit 39bf94e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ repositories {
val jvmTargetVersion = JvmTarget.JVM_17

val reportFolder = rootProject.file("reports")
val generatedFolder = layout.buildDirectory.dir("generated").get()
val dokkaOutputDir = rootProject.file("dokka")

detekt {
Expand Down Expand Up @@ -79,7 +80,7 @@ kotlin {
sourceSets {
main {
kotlin {
srcDir("build/generated")
srcDir(generatedFolder)
}
}

Expand Down Expand Up @@ -123,7 +124,7 @@ tasks {

withType<Detekt>().configureEach {
jvmTarget = jvmTargetVersion.target
exclude("**/generated/**")
exclude("**/${generatedFolder.asFile.name}/**")

reports {
html.required.set(true)
Expand Down

0 comments on commit 39bf94e

Please sign in to comment.