Skip to content

Commit

Permalink
Add warning about toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
melix committed Jan 20, 2025
1 parent 628e490 commit 76e47b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/docs/asciidoc/gradle-plugin.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ you can set up the `GRAALVM_HOME` environment variable pointing to your GraalVM
[[configuration-toolchains-enabling]]
=== Enabling Toolchain Detection

WARNING: Toolchain support has many pitfalls. Unless you have a single JDK installed on your machine, which is the GraalVM version that you want to use, we do not recommend enabling them yet. We are working with the Gradle team on improvements in the future.

Instead of relying on the JDK which is used to run Gradle, you can use the https://docs.gradle.org/current/userguide/toolchains.html[Gradle toolchain support] to select a specific GraalVM installation.

However, because of limitations in Gradle, the plugin may not be able to properly detect the toolchain.
Expand Down Expand Up @@ -909,4 +911,4 @@ include::../../../../samples/java-application-with-extra-sourceset/build.gradle.

== Javadocs

For further reference, you can review the link:javadocs/native-gradle-plugin/index.html[Javadocs of the plugin].
For further reference, you can review the link:javadocs/native-gradle-plugin/index.html[Javadocs of the plugin].

0 comments on commit 76e47b0

Please sign in to comment.