google / google/protobuf-gradle-plugin

BuildType is added to the output path

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

Description

I have an Android project and I set up this plugin with this config.

```
protobuf {
generatedFilesBaseDir = "$projectDir/src"
// Configure the protoc executable
protoc {
// Download from repositories
artifact = 'com.google.protobuf:protoc:3.0.0'
}

generateProtoTasks {
all().each { task ->
task.builtins {
java { }
}
}
}
}
```

for some reason the output files are not going to `src/main/java` but `src/{buildType}/java` so for example if I build the debug type the output file is `src/debug/java`. How can I make the output path always be `src/main/java`?

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.