google/protobuf-gradle-plugin

Improve Documentation for Android Kotlin DSL for protobuf-javalite

Open

#518 aperta il 21 ago 2021

Vedi su GitHub
 (9 commenti) (17 reazioni) (0 assegnatari)Groovy (287 fork)batch import
documentationhelp wanted

Metriche repository

Star
 (1832 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor