When building my project with Gradle (outside of I...
# gradle
n
When building my project with Gradle (outside of IntelliJ) inside Docker, I keep getting
Copy code
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/TypeCastException
A snippet of my `build.gradle.kts`:
Copy code
jar {
    archiveName = "myJar.jar"

    manifest {
        attributes(
            "Class-Path" to configurations.compile.get().joinToString(" ") { it.name },
            "Main-Class" to "com.mycompany.MainKt"
        )
    }
}
I assume my classpath is off somehow