File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,22 @@ tasks.withType<DetektCreateBaselineTask>().configureEach {
6060tasks.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}
You can’t perform that action at this time.
0 commit comments