This is an automated email from the ASF dual-hosted git repository.

snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new c43c546a2 Fix CI (no 2) (#2044)
c43c546a2 is described below

commit c43c546a227a3eddd0ed0d519f53d4b347c439a7
Author: Robert Stupp <sn...@snazy.de>
AuthorDate: Mon Jul 14 14:33:01 2025 +0200

    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.
---
 build.gradle.kts | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/build.gradle.kts b/build.gradle.kts
index 3b08d60e5..4548cd48c 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -238,3 +238,11 @@ changelog {
   )
   version.set(provider { project.version.toString() })
 }
+
+tasks.register("showVersion") {
+  actions.add {
+    logger.lifecycle(
+      "Polaris version is 
${project.file("version.txt").readText(Charsets.UTF_8).trim()}"
+    )
+  }
+}

Reply via email to