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 dcb1140  Synchronizer: Automatically adjust gradlew during Gradle 
Wrapper updates (#161)
dcb1140 is described below

commit dcb11402146f67f48f536126cc768c14a408423e
Author: Robert Stupp <[email protected]>
AuthorDate: Wed Feb 4 16:09:45 2026 +0100

    Synchronizer: Automatically adjust gradlew during Gradle Wrapper updates 
(#161)
---
 polaris-synchronizer/build.gradle.kts | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/polaris-synchronizer/build.gradle.kts 
b/polaris-synchronizer/build.gradle.kts
index d3f517d..b727a0e 100644
--- a/polaris-synchronizer/build.gradle.kts
+++ b/polaris-synchronizer/build.gradle.kts
@@ -78,4 +78,17 @@ tasks.named<RatTask>("rat").configure {
 
     // Rat can't scan binary images
     excludes.add("**/*.png")
+}
+
+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"))
+  }
 }
\ No newline at end of file

Reply via email to