Interested in using HotswapAgent instead of Spring...
# general
j
Interested in using HotswapAgent instead of Spring Boot Dev Tool for your x-large Grails application in Grails 7? https://github.com/apache/grails-core/issues/13669#issuecomment-3166145839 - the exact steps from the Sep 2024 demo are working, but other scenarios do not
It is ready for more testing and I guess there needs to be a scope of expectation, which may require changes to https://github.com/HotswapProjects/HotswapAgent and it's plugins
👍 1
j
Hi James Just wanted to check if the fixes in HotswapAgent will only be for Grails 7 or the older versions as well? I was using Grails 2.5.4 and the changes used to get compiled perfectly. Since I upgraded to Grails 4.0.12, I need to restart the application every time for even minor changes (printlns) to take effect.
t
It is a lot of work to make it work in Grails 4, 5, 6. Grails 4 is old and considered end-of-life It was discussed at an "Apache Grails Weekly Planning Meeting" and the conclusion was that it is the Micronaut context that is causing the reloading to not work. From the meeting notes:
2024-07-25
5.
b. Removing MN from Grails Core will also allow for reloading libraries like http://hotswapagent.org/ to work.
j
Ah, Understood Thanks, Thomas.
j
Spring dev tools works great for most apps. That's what I have used for years. Only x-large apps need something else due to how long it takes to reload a large number of classes. JRebel is the other paid options.
Copy code
developmentOnly "org.springframework.boot:spring-boot-devtools"
j
Yup I tried spring-boot-devtools But same issue. We are experimenting with JRebel for now.