JetBrains / compose-multiplatform

Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
https://jetbrains.com/lp/compose-multiplatform
Apache License 2.0
15.95k stars 1.16k forks source link

compose desktop mainJar not work with error `Main jar was not processed correctly` #3314

Open xinkunZ opened 1 year ago

xinkunZ commented 1 year ago

// use spring boot jar as main jar tasks.bootJar { archiveFileName.set("boot.jar") }

compose.desktop { application { ... disableDefaultConfiguration() mainClass = "org.springframework.boot.loader.JarLauncher" mainJar.set(tasks.bootJar.get().archiveFile) ... }


* the mapping is empty, what is `libsMapping`? 
![image](https://github.com/JetBrains/compose-multiplatform/assets/7759897/6901607f-4999-49bf-9873-0aaa7ae56a8d)
* the launcherMainJar param is correct and the file exists too

![image](https://github.com/JetBrains/compose-multiplatform/assets/7759897/73718fa9-1617-4058-99b9-84171a4c1352)
okushnikov commented 3 weeks ago

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.