Search code examples
gradlebuild-script

Checkout using gradle script


I am new to gradle.I want to checkout remote repository using gradle script. It is possible to run shell command Inside gradle task to clone remote repository with datetime stamp shell commands.


Solution

  • Yes, you can use a gradle Exec type task to execute any arbitrary command in the OS shell. See documentation and examples here.

    You didn't say what type of repo you're using, but there is a gradle git plugin to do git operations including checkout.