protobuf.gradle 461 B

12345678910111213141516171819202122
  1. apply plugin: "com.google.protobuf"
  2. dependencies {
  3. implementation "com.google.protobuf:protobuf-javalite:3.21.1"
  4. }
  5. protobuf {
  6. // Configure the protoc executable
  7. protoc {
  8. artifact = "com.google.protobuf:protoc:3.21.1"
  9. }
  10. generateProtoTasks {
  11. all().each { task ->
  12. task.builtins {
  13. remove java
  14. java {
  15. option "lite"
  16. }
  17. }
  18. }
  19. }
  20. }