New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GradleRunner withEnvironment() behaves differently in 8.8-rc-1 #29000
Comments
This is an interesting consequence of fixing Before 8.8 Gradle ignored But now if you use Gradle 8.7 wrapper that still sets To fix that one of these options will work:
|
Ah thank you for the explanation, that makes sense! For now we will set the property and presumably once we upgrade our main gradle version to 8.8 we can take it back out. |
Thanks for the workaround with setting |
Current Behavior
Setting
GradleRunner.withEnvironment
in a test for a gradle plugin seems to not set the environment variable for the gradle execution.Expected Behavior
It should set the environment variable during the gradle execution as it did in 8.7 and previous versions
Context (optional)
We have a custom gradle plugin, and one of the tests for the plugin fails when run with gradle 8.8-rc-1.
Steps to Reproduce
https://github.com/staktrace/20240429-gradle-88rc1-envvar contains a minimal reproducible test case. Follow instructions in the README
Gradle version
8.8-rc-1
Gradle version that used to work
8.7
Build scan URL (optional)
https://scans.gradle.com/s/qt7d3u5jb4ywk/tests/overview
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: