Update gradle wrapper (#4726)

* Add error context when gradle wrapper fails

* Update gradle wrapper

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
Moritz HedtkeandJonathan Kelley authored and GitHub committed 2025-10-06 16:36:31 -07:00
1 parent b35a52f337
commit 0b1f2fc8c2
5 files changed
+209 -140

No files matched your search

+4 -2
View File
@@ -4224,7 +4224,8 @@ __wbg_init({{module_or_path: "/{}/{wasm_path}"}}).then((wasm) => {{
.arg(build_type)
.current_dir(self.root_dir())
.output()
.await?;
.await
.context("Failed to run gradle")?;
if !output.status.success() {
bail!(
@@ -4289,7 +4290,8 @@ __wbg_init({{module_or_path: "/{}/{wasm_path}"}}).then((wasm) => {{
std::fs::set_permissions(
self.root_dir().join("gradlew"),
std::fs::Permissions::from_mode(0o755),
)?;
)
.context("Failed to make gradlew executable")?;
}
let gradle_exec_name = match cfg!(windows) {