-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add system properties for gradle config #1087
Conversation
package com.google.cloud.tools.jib.gradle; | ||
|
||
/** Names of system properties used to set configuration via commandline. */ | ||
class PropertyNames { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the same as the Maven ones right? Let's put them in plugins-common
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, what do you think about using an enum for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think they could go in plugins-common
, although I thought we were keeping configuration naming out of plugins-common
for some reason (maybe I'm misremembering a conversation we had a while ago, might have been something else).
I don't think we should use an enum here since this is specifically a collection of string constants, not a special data type. Although, maybe we could call "system property name" a special type of string. I don't think it's necessary though, since all we'll ever be doing is using the string values anyway.
Fixes #1083.
Adds system properties to allow configuring gradle parameters via command-line. Same format as maven in #1080.