Skip to content

Add Gradle Toolchain Support #357

Open
@jamesward

Description

@jamesward

I'm using:

id("org.graalvm.buildtools.native") version "0.9.16"

And have a Gradle toolchain configured:

java {
	toolchain {
		languageVersion.set(JavaLanguageVersion.of(17))
		vendor.set(JvmVendorSpec.GRAAL_VM)
	}
}

And I get:

./gradlew nativeRun

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':nativeCompile'.
> Failed to calculate the value of task ':compileJava' property 'javaCompiler'.
   > No compatible toolchains found for request filter: {languageVersion=17, vendor=GRAAL_VM, implementation=vendor-specific} (auto-detect true, auto-download true)

It'd be awesome if the Gradle Native plugin worked together with Gradle Toolchains.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions