google / google/protobuf-gradle-plugin

protoc resolve weirdness

Open
#140 4 comments 0 reactions 0 assignees View on GitHub
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

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.