Skip to content

Commit

Permalink
Backport fix from master
Browse files Browse the repository at this point in the history
This commit backports the fix from graalvm#80
  • Loading branch information
melix committed Jul 1, 2021
1 parent 249ff0f commit e465782
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
*/
package org.graalvm.buildtools.gradle.tasks;

import org.graalvm.buildtools.gradle.NativeImageService;
import org.graalvm.buildtools.gradle.dsl.NativeImageOptions;
import org.graalvm.buildtools.gradle.internal.GraalVMLogger;
import org.gradle.api.DefaultTask;
Expand Down Expand Up @@ -176,8 +175,10 @@ private static void appendBooleanOption(List<String> cliArgs, Provider<Boolean>


// This property provides access to the service instance
// It should be Property<NativeImageService> but because of a bug in Gradle
// we have to use a more generic type, see https://github.com/gradle/gradle/issues/17559
@Internal
public abstract Property<NativeImageService> getService();
public abstract Property<Object> getService();

@TaskAction
@SuppressWarnings("ConstantConditions")
Expand Down

0 comments on commit e465782

Please sign in to comment.