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

Fix ProtobufExtract task for Gradle Configuration Cache #413

Merged
merged 2 commits into from
Jun 12, 2020

Conversation

eskatos
Copy link
Contributor

@eskatos eskatos commented Jun 11, 2020

By using an ArchiveActionFacade in the same vein as CopyActionFacade in order to remove usage of Project at execution time.

ArchiveActionFacade uses the internal FileOperations type from Gradle. FileOperations is internal but quite stable and this plugin is already making use of other internals. Moreover, a public alternative will be available in Gradle 6.6 as ArchiveOperations.

See https://docs.gradle.org/nightly/userguide/configuration_cache.html

@eskatos eskatos force-pushed the eskatos/cc/extract branch from a2d3ba8 to dea2e91 Compare June 11, 2020 17:32
by using an ArchiveActionFacade in the same vein as CopyActionFacade
in order to remove usage of Project at execution time

ArchiveActionFacade uses the internal FileOperations type from Gradle.
FileOperations is internal but quite stable and this plugin is already
making use of other internals. Moreover, a public alternative will be
available in Gradle 6.6

Signed-off-by: Paul Merlin <[email protected]>
@eskatos eskatos force-pushed the eskatos/cc/extract branch from dea2e91 to 3f22e89 Compare June 11, 2020 18:52
Copy link
Collaborator

@voidzcy voidzcy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Changes look straightforward.

@@ -0,0 +1,50 @@
package com.google.protobuf.gradle;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a file header for this new file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, fixed :)

Signed-off-by: Paul Merlin <[email protected]>
@ejona86 ejona86 merged commit c425e55 into google:master Jun 12, 2020
@eskatos eskatos deleted the eskatos/cc/extract branch June 12, 2020 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants