Skip to content

gradle: Unable to get mutable environment variable map. (gradle 8.11+) #5044

Open
@sewbacca

Description

@sewbacca

Description / Steps to reproduce the issue

Running gradle 8.11 or higher results in the crash:

$ gradle run

FAILURE: Build failed with an exception.

* What went wrong:
Unable to get mutable environment variable map.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

Downgrading the package to 8.10.2 fixes the issue:

git clone https://github.com/msys2/MSYS2-packages
cd MSYS2-packages/gradle
git checkout 14a9d41bbf1894ddad05418a3b763b8aa5db4164
makepkg -i --noconfirm

Expected behavior

Gradle should execute the program successfully.

Actual behavior

Gradle crashes with error: Unable to get mutable environment variable map.

Verification

Windows Version

MSYS_NT-10.0-19045

Are you willing to submit a PR?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions