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:
committed by
Pavel Punegov
parent
724a05ce6a
commit
919db81fba
@@ -4108,7 +4108,7 @@ dependencies {
|
|||||||
if (PlatformInfo.getTarget(project) == KonanTarget.IOS_ARM64.INSTANCE) {
|
if (PlatformInfo.getTarget(project) == KonanTarget.IOS_ARM64.INSTANCE) {
|
||||||
project.tasks
|
project.tasks
|
||||||
.matching { it instanceof KonanTestExecutable }
|
.matching { it instanceof KonanTestExecutable }
|
||||||
.all {
|
.forEach {
|
||||||
ExecutorServiceKt.configureXcodeBuild((KonanTestExecutable) it)
|
ExecutorServiceKt.configureXcodeBuild((KonanTestExecutable) it)
|
||||||
}
|
}
|
||||||
// Exclude tasks that can not be run on device
|
// 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 KonanDynamicTest ||
|
||||||
it instanceof KonanLinkTest
|
it instanceof KonanLinkTest
|
||||||
}
|
}
|
||||||
.all { it.enabled = false }
|
.forEach { it.enabled = false }
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user