Skip to content

Commit b3ecf06

Browse files
author
Yevhen Babiichuk (DustDFG)
committed
Run checkstyle for extractor when it is built from source
1 parent 7a4ef03 commit b3ecf06

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

app/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ ksp {
130130
arg("room.schemaLocation", "$projectDir/schemas")
131131
}
132132

133-
134133
// Custom dependency configuration for ktlint
135134
val ktlint by configurations.creating
136135

@@ -164,6 +163,11 @@ tasks.register<Checkstyle>("runCheckstyle") {
164163
xml.required = true
165164
html.required = true
166165
}
166+
167+
// run checkstyle for extractor when it is built from source
168+
if (gradle.extra.has("extractorIncluded")) {
169+
dependsOn(gradle.includedBuild("NewPipeExtractor").task(":extractor:checkstyleMain"))
170+
}
167171
}
168172

169173
val outputDir = project.layout.buildDirectory.dir("reports/ktlint/")

settings.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ include(":app")
3131
// .using(project(":extractor"))
3232
// }
3333
// }
34+
// gradle.extra["extractorIncluded"] = true

0 commit comments

Comments
 (0)