Skip to content

Conversation

@erichaagdev
Copy link
Member

System properties cannot be read reliably from init scripts for older versions of Gradle. This is not the case for environment variables. This PR changes the configuration of the init scripts to be done using environment variables instead of system properties.

System properties cannot be reliably read from init scripts in certain
versions of Gradle. This is not the case for environment variables.
@erichaagdev
Copy link
Member Author

Copy link
Member

@jprinet jprinet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the super quick fix!
One little concern for Windows environment 😛

Copy link
Member

@etiennestuder etiennestuder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@etiennestuder
Copy link
Member

@erichaagdev Regarding System properties cannot be read reliably from init scripts for older versions of Gradle.:

I don’t agree with that. It’s only since changing to System.properties (in the shared init script) that we are facing issues. It worked well in all scenarios when we were using startParameters....

@erichaagdev erichaagdev merged commit 2fbd8be into main Nov 6, 2024
4 checks passed
@erichaagdev erichaagdev deleted the erichaagdev/use-envs branch November 6, 2024 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants