google / google/protobuf-gradle-plugin
Gradle DSL does not work with version catalogs
Open
enhancement
gradle compatibility
- Dominant language
- Groovy
- Stars
- 1.8k
- Forks
- 288
- PR merge metrics
- No merged PRs in 30d
Description
You cannot do the following, for example.
```kotlin
protobuf {
plugins {
id("grpc") {
setArtifact(libs.whatever)
}
}
}
```
`libs.whatever` returns a Provider of type [MinimalExternalModuleDependency](https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/MinimalExternalModuleDependency.html) but the method only accepts strings.
Would be nice to support [version catalogs](https://docs.gradle.org/current/userguide/platforms.html).
Contributor guide
Assessment
This issue has not been assessed yet.