Thanks for this! Ive checked out the documentation and am able to get it working in Intellij, but not gradle. Heres what my Intellij app config looks like:
Main class:
io.vertx.core.LauncherProgram arguments: run com.postsurge.web.MainVerticle --redeploy=**/*.class --launcher-class=io.vertx.core.Launcher
My gradle looks like this:
mainClassName = "io.vertx.core.Launcher"
shadowJar {
classifier = 'fat'
manifest {
attributes "Main-Verticle": mainVerticle
}
mergeServiceFiles {
include 'META-INF/services/io.vertx.core.spi.VerticleFactory'
}
}
and as you instructed i run:
./gradlew shadowJar
java -jar build/libs/web-fat.jar --redeploy="src/**/*.java" --on-redeploy="./gradlew shadowJar"
The file watcher is working as I receive this output upon saving a file. If i should see the "gradlew shadowJar" ouput, i am not:
INFO: Succeeded in deploying verticle
Dec 22, 2015 2:13:41 PM io.vertx.core.impl.launcher.commands.Watcher
INFO: Redeploying!
Stopping vert.x application 'bc4b94c5-7495-4d5d-adf2-3fa66fbb0553-redeploy'
Application 'bc4b94c5-7495-4d5d-adf2-3fa66fbb0553-redeploy' stopped.
Starting vert.x application...
bc4b94c5-7495-4d5d-adf2-3fa66fbb0553-redeploy
Dec 22, 2015 2:13:41 PM io.vertx.core.impl.launcher.commands.Watcher
INFO: Redeployment done
Dec 22, 2015 2:13:41 PM io.vertx.core.impl.launcher.commands.VertxIsolatedDeployer
INFO: Succeeded in deploying verticle
Any thoughts?