google / google/protobuf-gradle-plugin

Duplicate proto file in third party libraries

Open
#686 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Groovy
Stars
1.8k
Forks
288
PR merge metrics
No merged PRs in 30d

Description

```
Execution failed for task ':extractIncludeProto'.
> Entry google/api/annotations.proto is a duplicate but no duplicate handling strategy has been set. Please refer to https://docs.gradle.org/7.5.1/dsl/org.gradle.api.tasks.Copy.html#org.gradle.api.tasks.Copy:duplicatesStrategy for details.
```
you can reporduce this error by including this dependency
```kotlin
implementation("org.apache.arrow:flight-sql-jdbc-driver:11.0.0")
```
Some thirty party libraries define the same proto files multiple times, I can see [here](https://github.com/google/protobuf-gradle-plugin/blob/278f21b03074dcd63589801333db7615d3578745/src/main/groovy/com/google/protobuf/gradle/ProtobufExtract.groovy#L120) include all proto files from thirty party jars. Is there a way to exclude specific jar for proto extract task.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.