Issue
Im using: Intellij grailsVersion: 4.0.3 gorm.version: 7.0.4.RELEASE
I just get:
Testcontroller.groovy changed, recompiling...
But my code isn't hot deployed. With Grails 3 everything worked fine.
What can I do so that the Controllers in Grails 4 and Spring Boot 2 get hot deployed?
Solution
You may use spring-loaded (project has been idle for years but still works) or JRebel for "hot" reloads.
To enable:
build.gradle
dependencies {
// Remove dev-tools from classpath
// developmentOnly("org.springframework.boot:spring-boot-devtools")
agent "org.springframework:springloaded:1.2.8.RELEASE"
// (Optional) Native OSX file watcher
runtimeOnly "io.methvin:directory-watcher:0.9.6"
//...
}
See: https://github.com/grails/grails-core/pull/11441
Answered By - erichelgeson
Answer Checked By - Robin (JavaFixing Admin)