f

    fkrauthan

    2 years ago
    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)
    Kris Wong

    Kris Wong

    2 years ago
    shadowJar plugin
    f

    fkrauthan

    2 years ago
    I read online there suppose to be a way without shadowJar using just the multiplatform plugin and confoguring the `
    jvmJar
    manifest?
    plus there is a bug saying that shadowjar does not work with multiplatform: https://github.com/johnrengelman/shadow/issues/484
    Kris Wong

    Kris Wong

    2 years ago
    i've had it working using this:
    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

    fkrauthan

    2 years ago
    I see for the shadowjar plugin?