File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 22// SPDX-License-Identifier: Apache-2.0
33import io.gitlab.arturbosch.detekt.Detekt
44import io.gitlab.arturbosch.detekt.DetektCreateBaselineTask
5+ import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
56import software.aws.toolkits.gradle.jvmTarget
7+ import kotlin.jvm.java
68
79plugins {
810 id(" io.gitlab.arturbosch.detekt" )
@@ -54,3 +56,16 @@ tasks.withType<DetektCreateBaselineTask>().configureEach {
5456 // weird issue where the baseline tasks can't find the source code
5557 source.plus(detektFiles)
5658}
59+
60+ tasks.create(" aaaa" ) {
61+ doLast {
62+ project.extensions.getByType(KotlinJvmProjectExtension ::class .java).target.compilations.all { compilation ->
63+ compilation.kotlinSourceSets
64+ .map { it.kotlin.sourceDirectories }
65+ .fold(project.files() as FileCollection ) { collection, next -> collection.plus(next) }
66+ .forEach { println (it) }
67+
68+ true
69+ }
70+ }
71+ }
Original file line number Diff line number Diff line change @@ -35,8 +35,7 @@ phases:
3535 fi
3636
3737 - chmod +x gradlew
38- - su codebuild-user -c "./gradlew -PideProfileName=$ALTERNATIVE_IDE_PROFILE_NAME check coverageReport --info --console plain --continue"
39- - su codebuild-user -c "./gradlew -PideProfileName=$ALTERNATIVE_IDE_PROFILE_NAME buildPlugin"
38+ - su codebuild-user -c "./gradlew -PideProfileName=$ALTERNATIVE_IDE_PROFILE_NAME aaaa --info --console plain --continue"
4039 - VCS_COMMIT_ID="${CODEBUILD_RESOLVED_SOURCE_VERSION}"
4140 - CI_BUILD_URL=$(echo $CODEBUILD_BUILD_URL | sed 's/#/%23/g') # Encode `#` in the URL because otherwise the url is clipped in the Codecov.io site
4241 - CI_BUILD_ID="${CODEBUILD_BUILD_ID}"
You can’t perform that action at this time.
0 commit comments