Follow-up to #17 (#18)

This commit is contained in:
iamdanfox 2018-10-02 22:56:25 +01:00 committed by GitHub
parent 7d2d672697
commit b97444e036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ public class GradleGraalPlugin implements Plugin<Project> {
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")