Use forEach {} instead of all {}, because the latter cases closure to be executed in the configure() method.

This method adds doFirst{} for the second time.
This commit is contained in:
Pavel Punegov
2019-12-13 19:30:27 +03:00
committed by Pavel Punegov
parent 724a05ce6a
commit 919db81fba
+2 -2
View File
@@ -4108,7 +4108,7 @@ dependencies {
if (PlatformInfo.getTarget(project) == KonanTarget.IOS_ARM64.INSTANCE) {
project.tasks
.matching { it instanceof KonanTestExecutable }
.all {
.forEach {
ExecutorServiceKt.configureXcodeBuild((KonanTestExecutable) it)
}
// Exclude tasks that can not be run on device
@@ -4119,5 +4119,5 @@ if (PlatformInfo.getTarget(project) == KonanTarget.IOS_ARM64.INSTANCE) {
it instanceof KonanDynamicTest ||
it instanceof KonanLinkTest
}
.all { it.enabled = false }
.forEach { it.enabled = false }
}