parent
7d2d672697
commit
b97444e036
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ public class GradleGraalPlugin implements Plugin<Project> {
|
||||||
project.getPluginManager().apply(JavaPlugin.class);
|
project.getPluginManager().apply(JavaPlugin.class);
|
||||||
GraalExtension extension = project.getExtensions().create("graal", GraalExtension.class, project);
|
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)
|
.map(Paths::get)
|
||||||
.orElse(project.getGradle().getGradleUserHomeDir().toPath()
|
.orElse(project.getGradle().getGradleUserHomeDir().toPath()
|
||||||
.resolve("caches")
|
.resolve("caches")
|
||||||
|
|
Loading…
Reference in a new issue