google / google/protobuf-gradle-plugin

Gradle DSL does not work with version catalogs

Open
#563 6 comments 1 reaction 0 assignees View on GitHub
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

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.