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-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new 72d7eaf  Apprunner: Automatically adjust gradlew during Gradle Wrapper 
updates (#152)
72d7eaf is described below

commit 72d7eaf9ae259e37ddbee1e7f5bf250faaf0be2d
Author: Robert Stupp <[email protected]>
AuthorDate: Wed Feb 4 16:11:06 2026 +0100

    Apprunner: Automatically adjust gradlew during Gradle Wrapper updates (#152)
---
 apprunner/build.gradle.kts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/apprunner/build.gradle.kts b/apprunner/build.gradle.kts
index 3f74aec..fe47da8 100644
--- a/apprunner/build.gradle.kts
+++ b/apprunner/build.gradle.kts
@@ -154,3 +154,17 @@ changelog {
   )
   version.set(provider { project.version.toString() })
 }
+
+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