google / google/protobuf-gradle-plugin

OutputSubDir: Two sets of codes were generated

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

Description

I set the outputSubDir for java:
```
protobuf {
//generatedFilesBaseDir = "$protoPath"
protoc {
// Download from repositories
artifact = "com.google.protobuf:protoc:3.15.6"
//generatedFilesBaseDir = "$protoPath"
}

plugins {
}

generateProtoTasks {
ofSourceSet('test').each { task ->
task.plugins {
java {
outputSubDir = "proto222"
}
}
}
}
}
```
Then run task `generateTestProto`, and it generates **two same cpoys**. Here is the result:

Image

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.