/protobuf.gradle Secret
Last active
September 14, 2023 07:32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id "com.google.protobuf" version "0.9.4" | |
} | |
dependencies { | |
implementation "com.google.protobuf:protobuf-javalite:3.24.3" | |
} | |
protobuf { | |
protoc { | |
artifact = "com.google.protobuf:protoc:3.24.3" | |
} | |
// Generates the java Protobuf-lite code for the Protobufs in this project. See | |
// https://github.com/google/protobuf-gradle-plugin#customizing-protobuf-compilation | |
// for more information. | |
generateProtoTasks { | |
all().each { task -> | |
task.builtins { | |
java { | |
option 'lite' | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment