Skip to content

Instantly share code, notes, and snippets.

@jefferyshivers
Last active March 21, 2020 17:55
Show Gist options
  • Save jefferyshivers/e0b4189f7e21267d97bd37851d201a75 to your computer and use it in GitHub Desktop.
Save jefferyshivers/e0b4189f7e21267d97bd37851d201a75 to your computer and use it in GitHub Desktop.
Partial Gradle build script for a Protop project
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