Skip to content

Gradle: SigstoreSignFilesTask should use the Gradle daemon JVM by default #1146

Description

@hfhbd

Why does the task use the java toolchain and not the Gradle daemon JVM by default?

Gradle 9+ requires a JVM 17, but it is still common to target java 8 via toolchain. The current logic fails with this setup, because the sigstore task requires a JVM 11+.

While you can easily fix it, IMHO the tasks should use the Gradle daemon instead by default and not the java toolchain. The java toolchain is for compiling java code, while the daemon JVM is mostly for running Gradle tasks.

// launcherFor {} uses the JVM of the Gradle daemon
tasks.withType<SigstoreSignFilesTask>().configureEach {
    launcher.set(serviceOf<JavaToolchainService>().launcherFor { })
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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