From 531a43b2ec76aaf0986b27a644ca3b015c64a909 Mon Sep 17 00:00:00 2001 From: "Andrey S." Date: Thu, 31 Oct 2024 17:08:24 +0300 Subject: [PATCH] Remove `macosX64` target as it's causing problems with IDEA 2024.1+ (#2973) ### What's done: - `macosX64` target removed (because :common depends on `cosv4k` which doesn't provide `macosX64`-specific publications); - no more project resolution problems in IDEA 2024.1+; - fixes #2972. (cherry picked from commit 877c2767f033dc21cc9e96e6161b1d529e74f84e) --- save-cloud-common/build.gradle.kts | 3 --- save-demo-agent/build.gradle.kts | 5 ----- 2 files changed, 8 deletions(-) diff --git a/save-cloud-common/build.gradle.kts b/save-cloud-common/build.gradle.kts index fd14c18f4a..ef9b9e9d77 100644 --- a/save-cloud-common/build.gradle.kts +++ b/save-cloud-common/build.gradle.kts @@ -32,7 +32,6 @@ kotlin { // setup native compilation linuxX64() - macosX64() sourceSets { sourceSets.all { @@ -107,13 +106,11 @@ kotlin { } val linuxX64Main by getting - val macosX64Main by getting @Suppress("UNUSED_VARIABLE") val nativeMain by creating { dependsOn(commonMain) linuxX64Main.dependsOn(this) - macosX64Main.dependsOn(this) dependencies { implementation(libs.ktoml.core) diff --git a/save-demo-agent/build.gradle.kts b/save-demo-agent/build.gradle.kts index f59ea8a796..226bb15126 100644 --- a/save-demo-agent/build.gradle.kts +++ b/save-demo-agent/build.gradle.kts @@ -22,16 +22,13 @@ kotlin { } } } - macosX64(configureNative) linuxX64(configureNative) sourceSets { - val macosX64Main by getting val linuxX64Main by getting @Suppress("UNUSED_VARIABLE") val nativeMain by creating { - macosX64Main.dependsOn(this) linuxX64Main.dependsOn(this) dependencies { @@ -51,12 +48,10 @@ kotlin { } } - val macosX64Test by getting val linuxX64Test by getting @Suppress("UNUSED_VARIABLE") val nativeTest by creating { - macosX64Test.dependsOn(this) linuxX64Test.dependsOn(this) dependencies { implementation(libs.kotlin.test)