Hi everybody,
I’ve been searching for years to find a good working solution for hot swapping classes in Jmix (and before I tried the same for CUBA) with Kotlin. Everything I tried resulted in a more bad than good result.
I’m running the DCEVM 11.0.11 with the HotswapAgent
I’ve even tried writing a custom HotswapAgent plugin - with limited success.
With the Single Hotswap - IntelliJ IDEs Plugin | Marketplace IntelliJ plugin it’s working at least sometimes for single files, but more often than not the hot swap stalls or the application breaks, because some spring component can’t be found - although I didn’t touch the source code since the last application start.
My setup right now is:
- Jmix 1.4
- Kotlin
- DCEVM 11.0.11
- dependencies: (spring dev tools + hotswap agent)
implementation 'org.springframework.boot:spring-boot-devtools'
compileOnly 'org.hotswapagent:hotswap-agent:1.4.1'
compileOnly 'org.hotswapagent:hotswap-agent-core:1.4.1'
compileOnly 'org.hotswapagent:hotswap-agent-spring-plugin:1.4.1'
compileOnly 'org.hotswapagent:hotswap-agent-vaadin-plugin:1.4.1'
Would be awesome if anybody has got some more ideas + solutions + … (anything really) regarding this topic, as this restart-application-cycles kill so much productivity!