Skip to content

Generate Kotlin DSL builder for protobuf messages #171

@ks-yim

Description

@ks-yim

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.

generateProtoTasks {
    if (project.ext.hasFlag('kotlin-grpc') && ...) {
        kotlinGrpc {}
        // Apply `kotlin` plugin to generate DSL builder.
        kotlin {}
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions