I have server application that I run using gradle bootRun.
I also have script runUpdate.sh that I need to run from command line of terminal after application is started.
I created gradle task that run this script:
task runUpdate(type: Exec) {
commandLine './runUpdate.sh'
}
Now I want to run this script from bootRun automatically. With no need to execute additional step manually. How can I do it?
https://docs.gradle.org/current/userguide/more_about_tasks.html
you can use gradle dependsOn here is a sample code