[Gradle IT] Fixed prepareNativeBundleForGradleIT with k/n disabled
#KT-45978
This commit is contained in:
committed by
Space Team
parent
e18a2d0a2e
commit
45a1cc1a4a
@@ -150,8 +150,9 @@ tasks.register<Delete>("cleanUserHomeKonanDir") {
|
|||||||
|
|
||||||
tasks.register<Copy>("prepareNativeBundleForGradleIT") {
|
tasks.register<Copy>("prepareNativeBundleForGradleIT") {
|
||||||
|
|
||||||
description = "This task adds depenecy on :kotlin-native:bundle and then copying built bundle into the tests' konan dir"
|
description = "This task adds dependency on :kotlin-native:bundle and then copying built bundle into the tests' konan dir"
|
||||||
|
|
||||||
|
if (project.kotlinBuildProperties.isKotlinNativeEnabled) {
|
||||||
// 1. Build full Kotlin Native bundle
|
// 1. Build full Kotlin Native bundle
|
||||||
dependsOn(":kotlin-native:bundle")
|
dependsOn(":kotlin-native:bundle")
|
||||||
|
|
||||||
@@ -183,6 +184,7 @@ tasks.register<Copy>("prepareNativeBundleForGradleIT") {
|
|||||||
delete(konanDataDir)
|
delete(konanDataDir)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun Test.includeMppAndAndroid(include: Boolean) = includeTestsWithPattern(include) {
|
fun Test.includeMppAndAndroid(include: Boolean) = includeTestsWithPattern(include) {
|
||||||
addAll(listOf("*Multiplatform*", "*Mpp*", "*Android*"))
|
addAll(listOf("*Multiplatform*", "*Mpp*", "*Android*"))
|
||||||
|
|||||||
Reference in New Issue
Block a user