I have an environment where I have a java(spring mvc) webapp being developed by an n-member team on intellij with gradle as the build agent. This project has a dependency that is also being developed by the same team. The dependency is published to a repository from where it is read by the spring mvc app. What happens is that everytime there is a change to the dependency code, the spring app code has to be refreshed to include the latest version of the dependency code. So, the question is that is there a way to do a code swap at runtime in the dependency code and have it take affect in a debug session, pretty much like what JRebel does except that it needs to do it in the dependency code.
Any views on this would be highly appreciated.
P.S- I tagged gradle and jrebel because there might be a way to achieve this via this tech stack.