From c2db9f60767c6e686f03d69b5b232ebaaeb8b839 Mon Sep 17 00:00:00 2001 From: Dan Fox Date: Mon, 8 Oct 2018 12:06:49 +0100 Subject: [PATCH] Restore method --- src/main/java/com/palantir/gradle/graal/NativeImageTask.java | 5 +++++ .../java/com/palantir/gradle/graal/ReflectionConfigTask.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/palantir/gradle/graal/NativeImageTask.java b/src/main/java/com/palantir/gradle/graal/NativeImageTask.java index b2a0edf..228537e 100644 --- a/src/main/java/com/palantir/gradle/graal/NativeImageTask.java +++ b/src/main/java/com/palantir/gradle/graal/NativeImageTask.java @@ -140,6 +140,11 @@ public class NativeImageTask extends DefaultTask { mainClass.set(provider); } + @Input + public final Provider getOutputName() { + return outputName; + } + @Input public final Provider getGraalVersion() { return graalVersion; diff --git a/src/main/java/com/palantir/gradle/graal/ReflectionConfigTask.java b/src/main/java/com/palantir/gradle/graal/ReflectionConfigTask.java index 61d221a..42c84e0 100644 --- a/src/main/java/com/palantir/gradle/graal/ReflectionConfigTask.java +++ b/src/main/java/com/palantir/gradle/graal/ReflectionConfigTask.java @@ -52,7 +52,7 @@ public class ReflectionConfigTask extends DefaultTask { public final void generateFile() throws IOException { List> json = classes.get().stream() .map(clazz -> { - LinkedHashMap map = new LinkedHashMap<>(); + Map map = new LinkedHashMap<>(); map.put("name", clazz); map.put("allDeclaredConstructors", true); map.put("allPublicConstructors", true);