Skip to content

Commit 7af59ec

Browse files
committed
y
1 parent 767c073 commit 7af59ec

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

buildSrc/src/main/kotlin/toolkit-detekt.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,22 @@ tasks.withType<DetektCreateBaselineTask>().configureEach {
6060
tasks.create("aaaa") {
6161
doLast {
6262
project.extensions.getByType(KotlinJvmProjectExtension::class.java).target.compilations.all { compilation ->
63-
compilation.kotlinSourceSets
63+
val ss = compilation.kotlinSourceSets
6464
.map { it.kotlin.sourceDirectories }
6565
.fold(project.files() as FileCollection) { collection, next -> collection.plus(next) }
66+
ss
6667
.forEach { println(it) }
6768

69+
println("1 / ======")
70+
println(ss.files)
71+
6872
true
6973
}
7074

71-
println("======")
75+
println("source / ======")
7276
tasks.named<Detekt>("detektMain").get().source.forEach { println(it) }
77+
println("files / ======")
78+
println(tasks.named<Detekt>("detektMain").get().source.files)
79+
7380
}
7481
}

0 commit comments

Comments
 (0)