line / line/gradle-scripts

Generate Kotlin DSL builder for protobuf messages

Open
#171 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
80
Forks
34
Avg merge
1d 21h
Merged PRs (30d)
1

Description

Motivation:

Currently, `java-rpc-proto.gradle` does not generate Kotlin DSL builder
for protobuf messages even when the project is flagged with `kotlin-grpc`.

Registering `kotlin` plugin within `generateProtoTasks` closure will make it
generate Kotlin DSL builder for protobuf mesages.
```groovy
generateProtoTasks {
if (project.ext.hasFlag('kotlin-grpc') && ...) {
kotlinGrpc {}
// Apply `kotlin` plugin to generate DSL builder.
kotlin {}
}
}
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in java-rpc-proto.gradle and inspect the generateProtoTasks closure and its existing kotlin-grpc handling. Confirm how the kotlin flag is detected and verify that Kotlin DSL builders are generated when kotlin-grpc is enabled, without changing behavior for other configurations.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
build-system
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.