Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup scanning in Gradle?

Tags:

gradle

jetty

Background: I have a gradle project, and I use jettyRun with success. I want Jetty to pick up code changes immediately without requiring a server bounce. Gradle supports hot deploy, and I understand that all I need to do is turn on "scanning", but I am not sure exactly what I need to do. Here's what I tried:

jettyRun {
    httpPort = 8989
    reload = 'automatic'
    scanIntervalSeconds = 2
    daemon = false 
}

Thanks.

like image 687
Robert Christian Avatar asked Nov 02 '22 22:11

Robert Christian


1 Answers

That's how it should work. Remember that the jetty plugin picks up the resources from the 'build' folder and not the from the src folder.

cheers,

René

like image 185
Rene Groeschke Avatar answered Nov 09 '22 12:11

Rene Groeschke