Can someone tell me the easiest way to build a fatJar in Kotlin? I would prefer if It can be used with Amper, I do not want to deal with Gradle directly.

I build mine using my IDE with the Spring Boot library. It’s gradle and kotlin and IntelliJ, just go to the gradle menu, choose build and then the type of jar I want.

1 Like

thanks, I am using Ktor with Amper.

Fat jar was never really a good idea as it removes metadata from all libraries and mixes all classes in a single jar.
I’m also not a huge fan of Gradle, but I’d recommend the application plugin as it creates a proper executable bundle for all platforms without the uber jar hack.

1 Like

Thanks, but creating a native executable (Graal native image) from Fat JARs is easy. I don’t have to deal with classpaths and dependencies directly.