I have following sample DSLScriptBase,groovy file:
and following script test.groovy:
It works if DSLScriptBase.groovy is in the same directory as test.groovy.
But if I move DSLScriptBase.groovy to another directory (for example D:/Test) and modify test.groovy adding setClasspath:
I've got error: 'unable to resolve class DSLScriptBase'
It works fine in Grovy 2.1.9, but in 2.3.6 I can't figure any way to define script base classes on comp conf classpath (tried to create shell with ClassLoader, moving scriptbase into some package-subdir, precompile scriptbase - nothing works for me).