Open Syer10 opened 10 months ago
Strange.
Is the code that produces this available publicly?
Which Gradle version are you using?
also, which OS?
Its not available publicly, I am running on my Windows machine.
It seems like a straightforward error though, its trying to cast org.jetbrains.compose.internal.de.undercouch.gradle.tasks.download.Download_Decorated
to de.mobanisto.pinpit.de.undercouch.gradle.tasks.download.Download
.
Its probably some internal api that was changed in recent Compose Multiplatform versions
Pinpit 0.7.0 Kotlin 1.9.21 Compose 1.5.11 Gradle 8.2.1
Hmm, I don't see relevant changes in https://github.com/JetBrains/compose-multiplatform/commits/master/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/wixToolset.kt
However, I'm wondering why I didn't run into this before. It's probably a bit broken that pinpit defines the same tasks downloadWix
and unzipWix
same as the compose plugin does. Then if the compose plugin defined the task already, it is not created again, but the existing task is being casted, failing. I'm now guessing you have the compose plugin's compose.desktop.application.nativeDistributions
block in your gradle build file. I generally don't have them in my projects as pinpit basically replaced the compose plugin's native distribution. Could you try if disabling that and see if it helps? Do you still need that other distribution or are you just in a phase of trying things out?
I don't actually
This project is in a monorepo, and some other compose projects use the default compose builds, that might have something to do with it.
I added this to one of my example projects and unfortunately wasn't able to reproduce yet. Could be the added complexity of multiple projects within a single repo.
Maybe an easy solution would be to just have a different names for the tasks, just to be sure to avoid such clashes.
Could you try packaging again with version 0.8.0?
It works, thanks!
Compose version 1.5.11