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 873dbb8 Benchmarks: Automatically adjust gradlew during Gradle
Wrapper updates (#155)
873dbb8 is described below
commit 873dbb87ab3c83c9d3a6b336ab6127580c4b2f5f
Author: Robert Stupp <[email protected]>
AuthorDate: Wed Feb 4 16:10:25 2026 +0100
Benchmarks: Automatically adjust gradlew during Gradle Wrapper updates
(#155)
---
benchmarks/build.gradle.kts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/benchmarks/build.gradle.kts b/benchmarks/build.gradle.kts
index aa54bd3..e5ee8ac 100644
--- a/benchmarks/build.gradle.kts
+++ b/benchmarks/build.gradle.kts
@@ -92,3 +92,17 @@ tasks.named<RatTask>("rat").configure {
excludes.add("**/*.svg")
excludes.add("**/*.puml")
}
+
+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"))
+ }
+}
+