Skip to content

Commit

Permalink
Tweak README with improved exclusion code (#338)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Bennett <jasonbennett1@lithia.com>
  • Loading branch information
jasonab and Jason Bennett authored Aug 4, 2023
1 parent e567e20 commit 8869bde
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,12 @@ so you can customize includes, excludes, and source.
<summary>Kotlin</summary>

```kotlin
tasks.named("lintKotlinMain") {
source = source - fileTree("$buildDir/generated")
tasks.withType<LintTask> {
this.source = this.source.minus(fileTree("src/generated")).asFileTree
}

tasks.withType<FormatTask> {
this.source = this.source.minus(fileTree("src/generated")).asFileTree
}
```

Expand Down

0 comments on commit 8869bde

Please sign in to comment.