Skip to content

Instantly share code, notes, and snippets.

@gotev
Created December 21, 2016 18:24
Show Gist options
  • Save gotev/99a0ee2c13ecd10f19a5f0b47857cad1 to your computer and use it in GitHub Desktop.
Save gotev/99a0ee2c13ecd10f19a5f0b47857cad1 to your computer and use it in GitHub Desktop.
Pre build gradle task
// add this after dependencies section in a module
// this script has to be in the same path as the module
// otherwise, relative or absolute paths has to be used
task someScript(type: Exec) {
commandLine 'sh', '-c', './some_script.sh'
}
preBuild.dependsOn someScript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment