How to configure scanning in Gradle?

Background: I have a gradle project and I am successfully using jettyRun. I want Jetty to immediately replace code changes without requiring a server bounce. gradle supports hot deployment, and I understand that all I need to do is turn on the scan, but I'm not sure exactly what I need to do. Here is what I tried:

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

Thank.

+5
source share
1 answer

How it should work. Remember that the berth plugin takes resources from the "build" folder, and not from the src folder.

amuses

Renee

+2
source

All Articles