-
Notifications
You must be signed in to change notification settings - Fork 5
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
Allow for customization of project property source #26
Comments
@mcwhitak why doesn't |
Hardcoding An alternative to this that would solve the same issue for me would be the ability to customize the group delimiter
Though I feel that's a bit less intuitive as then the parameter path If this kind of thing goes against the goals you all had for the project I understand, this was just the issue I encountered when attempting to use it within my own projects (periods and *nix support) EDIT: I'm realizing there's also a secondary motivator for me which is specific to my organization. We have a variety of spellings for our internal repo credential naming on Gradle properties ( |
@mcwhitak thank you for providing more context! I still struggle to understand your concrete use case. Can you give a very concrete example of how you're injecting configuration into builds? Something like "We use maven-publish to publish to our internal repository. Our developers set This makes it much easier for us to reason about a good general solution. Thank you so much! 🙏🏻 |
Team decision We understand the use case for setting a project property via |
Ok I think that makes sense, I'll close my existing PR and make a new one if you are all open to outside contributions. I still believe positioning |
@mcwhitak we're definitely open to outside contributions 👍🏻 |
Currently a Gradle project property can be used as a source for a buildParameter but the property name is identical to the buildParameter path
<group>.<property>
.This causes problems when overriding properties from the environment (via
ORG_GRADLE_PROJECT_<propName>
) as *nix systems cannot use.
in environment variable names. Much like thefromEnvironment
method accepts a source variable name, it would be great if we could override a "source property name" as well.It could be via an
propertyAlias
function that would fall back on the alias property name if the original property was unset.The primary use case for overriding properties via environment variables is in unified CICD systems where abstracting on top of Gradle lifecycle tasks may still require individual projects to override their own pipeline/environment variables.
The text was updated successfully, but these errors were encountered: