Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 335
Ragubathi U Avatar asked Nov 30 '25 02:11

Ragubathi U


1 Answers

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.

like image 159
RaGe Avatar answered Dec 03 '25 00:12

RaGe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!