File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,7 +130,6 @@ ksp {
130130 arg(" room.schemaLocation" , " $projectDir /schemas" )
131131}
132132
133-
134133// Custom dependency configuration for ktlint
135134val 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
169173val outputDir = project.layout.buildDirectory.dir(" reports/ktlint/" )
Original file line number Diff line number Diff line change @@ -31,3 +31,4 @@ include(":app")
3131// .using(project(":extractor"))
3232// }
3333// }
34+ // gradle.extra["extractorIncluded"] = true
You can’t perform that action at this time.
0 commit comments