https://kotlinlang.org logo
j

JoakimForslund

06/27/2019, 2:33 PM
Anyone know how to either create a working shadowJar/jar package task configuration for groovy with the generated
JS Client and JVM Server
project for 1.3.40 ? (more specificly the jvm server)
I am able to add the manifest entry, but run into
Copy code
java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
pointing towards im not able to package all the dependencies properly
This is my current shadowJar configuration
Copy code
task shadowJar(type: ShadowJar, dependsOn: [jvmJar]) {
    from kotlin.targets.jvm.compilations.main.output
    configurations = [project.configurations.jvmRuntimeClasspath]
    jvmJar.manifest {
        attributes 'Main-Class': "sample.ApplicationKt"
    }
}
but if there is another way to do this, please let me know 🙂
3 Views