google / google/protobuf-gradle-plugin
protoc resolve weirdness
Open
feature request
- Dominant language
- Groovy
- Stars
- 1.8k
- Forks
- 288
- PR merge metrics
- No merged PRs in 30d
Description
```groovy
task setupProtocEnvironment << {
test.setEnvironment(PROTOC_COMPILER: project.protobuf.tools.protoc.path)
}
```
- [googleapis/toolkit build.gradle](https://github.com/googleapis/toolkit/blob/74f4b6b3ce5481fe70d925aebeddb29e0729af62/build.gradle#L204)
` project.protobuf.tools.protoc.path` is always null. I have to explicitly resolve the configuration:
> project.configurations.protobufToolsLocator_protoc.resolve().getAt(0)
is there a better way?
Contributor guide
Assessment
This issue has not been assessed yet.