j

    JoakimForslund

    3 years ago
    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
    java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics
    pointing towards im not able to package all the dependencies properly
    This is my current shadowJar configuration
    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 🙂