Using Gradle 8.1, on a fresh checkout of this repository, the command gradle run fails. Other tasks such as gradle build, gradle assemble seem to create the expected artifacts, but when kscript is invoked, all fail with the same error:
Error: Could not find or load main class io.github.kscripting.KscriptKt
Caused by: java.lang.ClassNotFoundException: io.github.kscripting.KscriptKt
It's there in the jar all right, but the manifest looks wrong - there's a missing kscript:
$ unzip -l build/libs/kscript.jar | grep -i kscriptkt
9594 2024-01-21 14:32 io/github/kscripting/kscript/KscriptKt.class
$ unzip -qc build/libs/kscript.jar META-INF/MANIFEST.MF
Manifest-Version: 1.0
Main-Class: io.github.kscripting.KscriptKt
So, should the main class be io.github.kscripting.kscript.KscriptKt, not io.github.kscripting.KscriptKt, or is something else wrong?