Groovy‘s RootLoader is a handy class that can be used to encapsulate a Groovy script’s reference to external classpath dependencies within the script itself. The documentation for RootLoader states, ...
Here's a quick look at the three types of class loaders and everything you need to know to work with them in your Java programs. Java class loaders are a component of the Java virtual machine (JVM) ...