google / google/protobuf-gradle-plugin

Improve Documentation for Android Kotlin DSL for protobuf-javalite

Open
#518 9 comments 17 reactions 0 assignees View on GitHub
documentation help wanted
Dominant language
Groovy
Stars
1.8k
Forks
288
PR merge metrics
No merged PRs in 30d

Description

I'm having issue converting these gradle groovy code to kotlin dsl.
```
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.8.0'
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option "lite"
}
}
}
}
}
```

**Especially the `option "lite"` in java block.**

Thanks.

Contributor guide

Open the contributing guide

Research direction

Start from the Groovy protobuf configuration shown in the issue and identify the corresponding Android Kotlin DSL syntax, especially the `option "lite"` expression inside the Java block. Documentation is complete when it includes a working Kotlin DSL example for the full configuration and clearly shows how to enable the lite option.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, groovy, kotlin
Domain
build-system
Issue type
Documentation
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.