diff --git a/prime-router/build.gradle.kts b/prime-router/build.gradle.kts index 45c12479845..6a030cc2ed1 100644 --- a/prime-router/build.gradle.kts +++ b/prime-router/build.gradle.kts @@ -48,7 +48,7 @@ plugins { id("io.swagger.core.v3.swagger-gradle-plugin") version "2.2.22" } -val commitId = { +val commitId by lazy { val stdout = ByteArrayOutputStream() exec { commandLine("git", "rev-parse", "--short", "HEAD")