mn create-app myapp --features file-watch../gradlew run --continuous./hello route and note what response you got.index in the src/main/java/myapp/HelloController.java file and save the file./hello route and see that the response hasn't changed.The server should be stopped so that Gradle can rebuild and restart the application.
$ ./gradlew run --continuous
> Task :compileJava
Note: Creating bean classes for 1 type elements
> Task :run
23:46:58.577 [main] INFO io.micronaut.runtime.Micronaut - Startup completed in 730ms. Server Running: http://localhost:8080
<=========----> 75% EXECUTING [32s]
> :run
At this point (at 75%) Gradle hangs and never gets to restart.
Also, Gradle:
$ ./gradlew --version
------------------------------------------------------------
Gradle 5.1.1
------------------------------------------------------------
Build time: 2019-01-10 23:05:02 UTC
Revision: 3c9abb645fb83932c44e8610642393ad62116807
Kotlin DSL: 1.1.1
Kotlin: 1.3.11
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 11.0.2 (Oracle Corporation 11.0.2+9-LTS)
OS: Mac OS X 10.14.5 x86_64
This is the application I get from running create-app with --features file-watch and one file added: https://github.com/dchenk/micronaut-reload-demo
This was fixed by https://github.com/micronaut-projects/micronaut-core/commit/e4f1431a2746628593910853cdf6675bb47c9978 if you are willing to use 1.2 RC2
In the meantime I have backported the fix. Thanks for the report.
Broken again for Micronaut 1.2.0 and Gradle 5.5?
Simple test with ./gradlew run --continuous does not detect changes in source files.
This seems to still be an issue. Micronaut 1.3.0
Most helpful comment
This seems to still be an issue. Micronaut 1.3.0