From 3c981d39e6777d9b42a58bc62e105e1efc2a1c57 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 29 Sep 2026 16:10:09 -0400 Subject: [PATCH] Fix amy build --- cli/build.gradle.kts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cli/build.gradle.kts b/cli/build.gradle.kts index 52ed74887e..32e77d9848 100644 --- a/cli/build.gradle.kts +++ b/cli/build.gradle.kts @@ -174,6 +174,20 @@ tasks.named("installDist") { dependsOn(patchAmyLauncherCharset) } +// Since Compose Multiplatform 1.12 the JetBrains `runtime-desktop` artifact is a class-less +// redirect stub (manifest + license) whose real classes come from +// androidx.compose.runtime:runtime-desktop — and both jars are named +// `runtime-desktop-.jar`, so installDist/distZip failed on the duplicate lib/ entry. +// Excluding the module from resolution would also drop the androidx jar it pulls in, so only +// the stub's file is left out of the copy; the start script names the androidx jar either way. +distributions.named("main") { + contents { + eachFile { + if (file.invariantSeparatorsPath.contains("/org.jetbrains.compose.runtime/runtime-desktop/")) exclude() + } + } +} + // --------------------------------------------------------------------------- // Native distribution (jlink + jpackage) //