From 5bba90eda16a4baf54f59672cf9596cd1ed3f08f Mon Sep 17 00:00:00 2001 From: chippmann Date: Sat, 18 May 2024 11:59:41 +0200 Subject: [PATCH] Always run task --- harness/benchmarks/build.gradle.kts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/harness/benchmarks/build.gradle.kts b/harness/benchmarks/build.gradle.kts index ccb5c4a6f..fc2948944 100644 --- a/harness/benchmarks/build.gradle.kts +++ b/harness/benchmarks/build.gradle.kts @@ -46,6 +46,8 @@ tasks { group = "validation" dependsOn(importResources, compileKotlin) + outputs.upToDateWhen { false } + isIgnoreExitValue = true val editorExecutable: String = projectDir @@ -76,9 +78,10 @@ tasks { dependsOn(runBenchmarks) doLast { - val benchmarkResultsFile = project.file("benchmark-results.json") + val benchmarkResultsFile = projectDir.resolve("benchmark-results.json") if (!benchmarkResultsFile.exists()) { + println(projectDir.listFiles().toList()) throw IllegalStateException("Cannot upload $benchmarkResultsFile as it does not exist. Make sure you ran ${runBenchmarks.name} first") }