Skip to content

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

@vsajip

Description

@vsajip

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions