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 00d8d6f26 Automatically adjust gradlew during Gradle Wrapper updates 
(#3620)
00d8d6f26 is described below

commit 00d8d6f26ece4c165dc98a2300a9e8921e07565b
Author: Robert Stupp <[email protected]>
AuthorDate: Fri Feb 6 14:35:29 2026 +0100

    Automatically adjust gradlew during Gradle Wrapper updates (#3620)
---
 build.gradle.kts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/build.gradle.kts b/build.gradle.kts
index a41460c99..ea4b96d90 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -248,3 +248,17 @@ tasks.register("showVersion") {
     )
   }
 }
+
+tasks.named<Wrapper>("wrapper") {
+  actions.addLast {
+    val script = scriptFile.readText()
+    val scriptLines = script.lines().toMutableList()
+
+    val insertAtLine =
+      scriptLines.indexOf("# Use the maximum available, or set MAX_FD != -1 to 
use that value.")
+    scriptLines.add(insertAtLine, "")
+    scriptLines.add(insertAtLine, $$". 
\"${APP_HOME}/gradle/gradlew-include.sh\"")
+
+    scriptFile.writeText(scriptLines.joinToString("\n"))
+  }
+}

Reply via email to