-
Notifications
You must be signed in to change notification settings - Fork 950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hot reloading is not working #13104
Comments
In Grails 4, applications include the Spring Boot Developer Tools dependency. This facilitates the automatic restart of the application when alterations are made to source files. It's important to note that the use of Devtools might introduce challenges related to classloading. To ensure smooth implementation, we recommend a thorough review of the provided documentation. Unlike its earlier versions, Grails 6 does not include this functionality by default. However, incorporating the subsequent dependency into your project's build.gradle file can reinstate this feature: developmentOnly("org.springframework.boot:spring-boot-devtools") Furthermore, with Grails 6.0.1, the option to include the "Spring Boot DevTools" feature is available during the application creation process. |
@puneetbehl Facing same challenge in Grails 6. Is there option to achieve hot reloading without restart as was in Grails 3? As our application is monolith and having frequent restarts while changing just few lines code here and there. It would slow down development speed. |
spring-boot-devtools is the route for Grails 4, 5 and 6. Grails 7 SNAPSHOTS are currently working with https://github.com/HotswapProjects/HotswapAgent You also need groovy hotswap: https://andrewclement.blogspot.com/2010/03/groovy-eclipse-groovy-hotswap-support.html |
Expected Behavior
When changing a controller it was expected that Hot reloading would work, however it is not working, I have to stop the application and start again
Actual Behaviour
Hot reloading is not working
Steps To Reproduce
1 - curl --location --request GET 'https://grailsforge-latest-cjmq3uyfcq-uc.a.run.app/create/web/com.example.demo?gorm=HIBERNATE&servlet=TOMCAT&test=SPOCK&javaVersion=JDK_11' --output demo.zip
2 - unzip demo.zip
3 - grails create-controller Index
4 - ./gradlew bootRun
5 - I modify the controller
6 - I check the output
Environment Information
openjdk 11.0.19 2023-04-18
grails 6.0.0
Example Application
No response
Version
6.0.0
The text was updated successfully, but these errors were encountered: