protobuf-nano.gradle 350 B

123456789101112131415161718
  1. apply plugin: "com.google.protobuf"
  2. dependencies {
  3. implementation 'com.google.protobuf.nano:protobuf-javanano:3.1.0'
  4. }
  5. protobuf {
  6. protoc {
  7. artifact = "com.google.protobuf:protoc:3.0.0"
  8. }
  9. generateProtoTasks {
  10. all().each { task ->
  11. task.builtins {
  12. javanano {}
  13. }
  14. }
  15. }
  16. }