Created
December 21, 2016 18:24
-
-
Save gotev/99a0ee2c13ecd10f19a5f0b47857cad1 to your computer and use it in GitHub Desktop.
Pre build gradle task
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
// 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