Hey is there any easy way to configure a executabl...
# multiplatform
f
Hey is there any easy way to configure a executable fat JAR for a jvm target in a kotlin multiplatform gradle project (using kotlin DSL)
k
shadowJar plugin
f
I read online there suppose to be a way without shadowJar using just the multiplatform plugin and confoguring the `
Copy code
jvmJar
manifest?
plus there is a bug saying that shadowjar does not work with multiplatform: https://github.com/johnrengelman/shadow/issues/484
k
i've had it working using this:
Copy code
val target = kotlin.targets.jvm("myTarget")
    from(target.compilations["main"].output)
    val runtimeClasspath = target.compilations["main"].compileDependencyFiles as Configuration
    configurations = mutableListOf(runtimeClasspath)
more or less
f
I see for the shadowjar plugin?