Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fresh checkout of repo causes failure on gradle run and other ways of invoking kscript fail for the same reason #416

Open
vsajip opened this issue Jan 21, 2024 · 0 comments

Comments

@vsajip
Copy link
Contributor

vsajip commented Jan 21, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant