Fix compilation errors

pull/1323/head
lihenggui 2 years ago
parent 218d820b6c
commit 85325f1267

@ -58,20 +58,24 @@ internal fun Project.configureKotlinMultiplatform() {
tvosArm64()
iosArm64()
// tier 3
androidNativeArm32()
androidNativeArm64()
androidNativeX86()
androidNativeX64()
mingwX64()
watchosDeviceArm64()
// fix :core:model:androidNativeArm32Main: Could not resolve org.jetbrains.kotlinx:kotlinx-datetime
// // tier 3
// androidNativeArm32()
// androidNativeArm64()
// androidNativeX86()
// androidNativeX64()
// mingwX64()
// watchosDeviceArm64()
// linking fails for the linux test build if not built on a linux host
// ensure the tests and linking for them is only done on linux hosts
project.tasks.named("linuxX64Test") { enabled = HostManager.hostIsLinux }
project.tasks.named("linkDebugTestLinuxX64") { enabled = HostManager.hostIsLinux }
project.tasks.named("mingwX64Test") { enabled = HostManager.hostIsMingw }
project.tasks.named("linkDebugTestMingwX64") { enabled = HostManager.hostIsMingw }
// Fixes Cannot locate tasks that match ':core:model:testClasses' as task 'testClasses'
// not found in project ':core:model'. Some candidates are: 'jsTestClasses', 'jvmTestClasses'.
project.tasks.create("testClasses") {
dependsOn("allTests")
}
}
}

File diff suppressed because it is too large Load Diff

@ -24,7 +24,10 @@ pluginManagement {
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
// https://youtrack.jetbrains.com/issue/KT-55620
// Issue: Could not determine the dependencies of task ':kotlinNodeJsSetup'.
// Fix target versions: Kotlin 2.0.0-Beta1
// repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()

Loading…
Cancel
Save