File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
native-gradle-plugin/src/main/java/org/graalvm/buildtools/gradle/internal Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -70,12 +70,11 @@ public abstract class DefaultGraalVmExtension implements GraalVMExtension {
7070 @ Inject
7171 public DefaultGraalVmExtension (NamedDomainObjectContainer <NativeImageOptions > nativeImages ,
7272 NativeImagePlugin plugin ,
73- Project project ,
74- JavaToolchainService toolchains ) {
73+ Project project ) {
7574 this .nativeImages = nativeImages ;
7675 this .plugin = plugin ;
7776 this .project = project ;
78- this .toolchainService = toolchains ;
77+ this .toolchainService = project . getExtensions (). getByType ( JavaToolchainService . class ) ;
7978 this .defaultJavaLauncher = project .getObjects ().property (JavaLauncher .class );
8079 enableToolchainDetection ();
8180 nativeImages .configureEach (options -> options .getJavaLauncher ().convention (defaultJavaLauncher ));
You can’t perform that action at this time.
0 commit comments