Import class from another groovy file


We are able to execute some groovy script thanks to deployment://myscript.groovy

However, from mygroovy.groovy file I cannot import a class defined in another groovy file (Util.groovy) that is part of the same deployment.

Is it supported somehow ?


I was able to achieve it by setting a “start : Script” listener on my start event ( using external resource: deployment://Util.groovy)

I am now wondering if this is the proper way to do it, is it supported or am I just lucky ?