Gradle watch application?

Often when developing applications, i find myself running gradle deploy alot. I was wondering if there exists or is possible to create a way to watch the folder for changes and automatically deploy them?

Yes, this is possible, simply use gradle -t deploy

-t, --continuous Enables continuous build. Gradle does not exit and will re-execute tasks when task file inputs change. [incubating]

1 Like

Of course you only need to deploy when changing libraries and Java code and such. You can start XP in dev mode ./ dev and then most changes to your code will take place immediately without re-building the jar file.


Oh, that sounds nice! How does this work?

I don’t know how it works, but you use dev mode by starting XP with ‘./ dev’ and you can read about it here

1 Like