Skip to content

Commit

Permalink
Make exec configuration cache friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob committed May 4, 2024
1 parent 10c2f48 commit f550332
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/status-history/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import org.gradle.api.internal.GradleInternal
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform

plugins {
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit f550332

Please sign in to comment.