I reordered my dependencies in build.gradle
in alphabetical order, after which I quickly noticed that my Spring application no longer works properly (it halts with message java.lang.NoSuchMethodError: javax.servlet.ServletContext.getClassLoader()
on start up). If I move the undertow dependency from the middle to the top, then everything works fine as before.
How does dependency ordering affect the way the application is run? What is the suggested order?