-
Notifications
You must be signed in to change notification settings - Fork 2
use GradleExec#exec
over ProviderFactory#exec
#210
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
base: develop
Are you sure you want to change the base?
Conversation
Generate changelog in
|
✅ Successfully generated changelog entry!What happened?Your changelog entries have been stored in the database as part of our migration to ChangelogV3. Need to regenerate?Simply interact with the changelog bot comment again to regenerate these entries. |
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 this is good to go. Let's wait for a review from @CRogers before we merge.
@Inject | ||
protected abstract ProviderFactory getProviderFactory(); | ||
@Nested | ||
protected abstract GradleExec getGradleExec(); |
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.
Let's test that this compiles!
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.
should do thats how its used currently - https://github.com/palantir/gradle-utils/blob/develop/platform/src/main/java/com/palantir/platform/GradleOperatingSystem.java#L33
Co-authored-by: Kelvin Ou <[email protected]>
marked as DNM until we settle how we want to handle errors (i.e palantir/gradle-utils#435) so we don't roll this out only to have to update later |
Before this PR
Had no errorprone to encourage the usage of
GradleExec
After this PR
We now have an errorprone to force the usage of
GradleExec#exec
with updatedREADME
See palantir/gradle-utils#435 (comment) for reference
==COMMIT_MSG==
use
GradleExec#exec
overProviderFactory#exec
==COMMIT_MSG==
Possible downsides?