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

Gradle 7.2 support #522

Open
krishnakumar797 opened this issue Sep 16, 2021 · 4 comments
Open

Gradle 7.2 support #522

krishnakumar797 opened this issue Sep 16, 2021 · 4 comments
Labels
gradle compatibility Compatibility issues with Gradle

Comments

@krishnakumar797
Copy link

Getting the below warning

Execution optimizations have been disabled for task ':common:processResources' to ensure correctness due to the following reasons:

Reason: Task ':common:processResources' uses this output of task ':common:extractProto' without declaring an explicit or implicit dependency.

and also the error

Execution failed for task ':common:processResources'.
> Entry user_info.proto is a duplicate but no duplicate handling strategy has been set.

while using com.google.protobuf gradle pulugin version 0.8.17 for build task.

@bwoester
Copy link

bwoester commented Nov 3, 2021

Any new on this? I'm facing the same issue. Not 100% sure if it's invalid configuration on our side though. Tried to verify using the provided example project, but it seems not maintained (uses old plugin version). Any information on where the issue might come from would be much appreciated.

@rougsig
Copy link
Collaborator

rougsig commented Jul 3, 2022

Could be error the same as #248?

@rougsig rougsig added the gradle compatibility Compatibility issues with Gradle label Jul 10, 2022
@domhauton
Copy link

domhauton commented Jul 26, 2022

I came across the same issue. You can set the duplicate handling strategy for all tasks in your grade. It's a bit of blunt hammer approach:

tasks.withType(Copy).all {
    duplicatesStrategy 'exclude'
}

For a slightly more fine-grained approach, I managed to fix it by declaring:

processResources {
    duplicatesStrategy 'exclude'
}

(you may need to change the name of the task a bit)

@ejona86
Copy link
Collaborator

ejona86 commented Nov 5, 2022

This should be fixed in 0.9.0+. (The dependency issue, not the duplicates)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gradle compatibility Compatibility issues with Gradle
Projects
None yet
Development

No branches or pull requests

5 participants