From b97444e036237a5601900da6f264e99bf86dab36 Mon Sep 17 00:00:00 2001 From: iamdanfox Date: Tue, 2 Oct 2018 22:56:25 +0100 Subject: [PATCH] Follow-up to #17 (#18) --- src/main/java/com/palantir/gradle/graal/GradleGraalPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/palantir/gradle/graal/GradleGraalPlugin.java b/src/main/java/com/palantir/gradle/graal/GradleGraalPlugin.java index 756265b..a1c150d 100644 --- a/src/main/java/com/palantir/gradle/graal/GradleGraalPlugin.java +++ b/src/main/java/com/palantir/gradle/graal/GradleGraalPlugin.java @@ -51,7 +51,7 @@ public class GradleGraalPlugin implements Plugin { project.getPluginManager().apply(JavaPlugin.class); GraalExtension extension = project.getExtensions().create("graal", GraalExtension.class, project); - Path cacheDir = Optional.ofNullable((String) project.getProperties().get("com.palantir.graal.cache.dir")) + Path cacheDir = Optional.ofNullable((String) project.findProperty("com.palantir.graal.cache.dir")) .map(Paths::get) .orElse(project.getGradle().getGradleUserHomeDir().toPath() .resolve("caches")