Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 7d66eb6

Browse files
committed
Disable NBT Gradle toolchain support by default
In order to allow Liberica NIK usage. Closes gh-1381
1 parent 83b4fca commit 7d66eb6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

spring-aot-gradle-plugin/src/main/java/org/springframework/aot/gradle/SpringAotGradlePlugin.java

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public void apply(final Project project) {
9797

9898
project.getPlugins().withType(JavaPlugin.class, javaPlugin -> {
9999
GraalVMExtension graal = project.getExtensions().findByType(GraalVMExtension.class);
100+
graal.getToolchainDetection().set(false);
100101

101102
// Create the "springAot" DSL extension for user configuration
102103
project.getExtensions().create(EXTENSION_NAME, SpringAotExtension.class, project.getObjects());

spring-native-docs/src/main/asciidoc/getting-started-native-build-tools.adoc

+1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ The following example adds a `native` profile that triggers the plugin during th
219219
// The GraalVM native build tools plugin is applied and configured automatically
220220
----
221221

222+
NOTE: When used with Spring AOT, Native Build Tools Gradle toolchain support is disabled by default in order to avoid current limitations related to identifying in a reliable way JDK with native capabilities. See https://github.com/gradle/gradle/issues/18896[this related Gradle issue].
222223

223224
===== Maven Repository
224225

0 commit comments

Comments
 (0)