Last active
March 21, 2020 17:55
-
-
Save jefferyshivers/e0b4189f7e21267d97bd37851d201a75 to your computer and use it in GitHub Desktop.
Partial Gradle build script for a Protop project
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
task protop(type: Exec) { | |
commandLine "protop", "sync", "--git-refresh" | |
} | |
protobuf { | |
generateProtoTasks { | |
all().each { task -> | |
task.dependsOn protop // Make sure `protop sync` happens before the proto generators | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment