From f5503324644ebb27ff361c971d899d3c0ffe4141 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Sat, 4 May 2024 11:53:19 +0100 Subject: [PATCH] Make exec configuration cache friendly --- web/status-history/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/status-history/build.gradle b/web/status-history/build.gradle index 8e036859..bd19d4d0 100644 --- a/web/status-history/build.gradle +++ b/web/status-history/build.gradle @@ -1,3 +1,4 @@ +import org.gradle.api.internal.GradleInternal import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform plugins { @@ -91,9 +92,10 @@ tasks.named("run").configure { JavaExec task -> "micronaut.io.watch.paths": "src/main", ) } + def exec = (gradle as GradleInternal).services.get(ExecOperations.class) doFirst { def stream = new ByteArrayOutputStream() - exec { + exec.exec { commandLine("gcloud.cmd", "beta", "emulators", "datastore", "env-init") standardOutput = stream }