-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Configurable gradle configurations #3034
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
Merged
chanseokoh
merged 18 commits into
GoogleContainerTools:master
from
cromefire:gradle-configurations
Mar 1, 2021
Merged
Changes from 9 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
878b349
Added configurable configuration
cromefire d8241eb
Removed unneeded class
cromefire ea8ac3c
Removed old import
cromefire fefa84e
Stripped gradle stuff out of common module
cromefire ed974c4
Fixed build
cromefire d723500
Fixed warnings
cromefire 0cfd54e
Fixed checkstyle
cromefire fd0c3f7
Fixed GradleProjectPropertiesTest
cromefire 9f53ad7
Fixed code style
cromefire 58ad2ed
Use system property as default
cromefire 37c1480
Added system property workaround
cromefire 539f08c
Update jib-gradle-plugin/src/main/java/com/google/cloud/tools/jib/gra…
cromefire 3596a4f
Reverted mocking
cromefire 587e258
Merge remote-tracking branch 'origin/gradle-configurations' into grad…
cromefire 4953616
Consistent usage of project
cromefire 00b3eb1
Fixed formatting
cromefire bf13c92
Merge branch 'master' into gradle-configurations
cromefire 711e382
Fixed tests
cromefire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
our of curiosity, can we just set the property to the system property value here?
while this still looks a little odd, if it is possible, it matches more closely our previous patterns and it removes the ambiguous
GetconfigurationName/readConfigurationName
situation.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've realized it via a default value now, that sounds like a good idea anyway because it gives the user all the control. So if you want the override behavior you can just set the value to
System.getProperty("some.property", "default")
. The downside is of course that this is different from the rest of the API, creating an inconsistency in some cases.