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 a888797  Catalog Migrator: Automatically adjust gradlew during Gradle 
Wrapper updates (#156)
a888797 is described below

commit a888797b84ca35ec0413b59127abf4af4ccefb82
Author: Robert Stupp <[email protected]>
AuthorDate: Mon Feb 2 09:11:17 2026 +0100

    Catalog Migrator: Automatically adjust gradlew during Gradle Wrapper 
updates (#156)
---
 iceberg-catalog-migrator/build.gradle.kts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/iceberg-catalog-migrator/build.gradle.kts 
b/iceberg-catalog-migrator/build.gradle.kts
index e4189b4..11ee2f6 100644
--- a/iceberg-catalog-migrator/build.gradle.kts
+++ b/iceberg-catalog-migrator/build.gradle.kts
@@ -109,3 +109,17 @@ nexusPublishing {
     }
   }
 }
+
+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