Skip to content

Commit 8467b7a

Browse files
committed
chore: fix gradle build compatability with configuration-cache
1 parent 27dd657 commit 8467b7a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

core/build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ tasks {
6161
outputs.file(versionFile)
6262
outputs.cacheIf { true }
6363

64-
doLast {
65-
// run the shell script genVersionFileScript with versionPropertiesFile as argument
66-
val scriptProcess =
67-
providers.exec {
68-
workingDir = rootProject.rootDir
69-
commandLine = listOf(genVersionFileScript.toString(), versionPropertiesFile.toString())
70-
}
64+
// provider to run the shell script genVersionFileScript with versionPropertiesFile as argument
65+
val scriptProcess =
66+
providers.exec {
67+
workingDir = rootProject.rootDir
68+
commandLine = listOf(genVersionFileScript.toString(), versionPropertiesFile.toString())
69+
}
7170

71+
doLast {
7272
val scriptOutput = scriptProcess.standardOutput.asText.get()
7373
if (scriptProcess.result.get().exitValue != 0) {
7474
val scriptError = scriptProcess.standardError.asText.get()

0 commit comments

Comments
 (0)