Skip to content

Commit c43c546

Browse files
authored
Fix CI (no 2) (#2044)
The newly added `store-gradle-cache` CI job has run some Gradle task to trigger Gradle's automatic cache cleanup. In the source project Nessie we used a simple task `showVersion` to do this. As having this task in Polaris might be useful, adding this task as there's no other suitable task (cheap and not generating much output) seems legit.
1 parent e77a3a7 commit c43c546

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,3 +238,11 @@ changelog {
238238
)
239239
version.set(provider { project.version.toString() })
240240
}
241+
242+
tasks.register("showVersion") {
243+
actions.add {
244+
logger.lifecycle(
245+
"Polaris version is ${project.file("version.txt").readText(Charsets.UTF_8).trim()}"
246+
)
247+
}
248+
}

0 commit comments

Comments
 (0)