Skip to content
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

Merged
merged 6 commits into from
Oct 3, 2018
Merged

Conversation

TadCordle
Copy link
Contributor

Fixes #1083.

Adds system properties to allow configuring gradle parameters via command-line. Same format as maven in #1080.

package com.google.cloud.tools.jib.gradle;

/** Names of system properties used to set configuration via commandline. */
class PropertyNames {
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor Author

@TadCordle TadCordle Oct 2, 2018

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.

@TadCordle TadCordle merged commit 605b264 into master Oct 3, 2018
@TadCordle TadCordle deleted the i1083-gradle-properties branch October 3, 2018 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants