google/protobuf-gradle-plugin

Improve Documentation for Android Kotlin DSL for protobuf-javalite

Open

#518 opened on Aug 21, 2021

View on GitHub
 (9 comments) (17 reactions) (0 assignees)Groovy (287 forks)batch import
documentationhelp wanted

Repository metrics

Stars
 (1,832 stars)
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