Add dependencies on a Connector Script

Hi

I created a Groovy script named ‘Compras’ with some methods on it. But when I try to call that methods from a connector I’m getting a ‘depends on Compras is neither defined in the script nor in dependencies’. Where should I declare that dependency? Is this a bug?

Thank you very much

Hello,
Methods written in separate scripts cannot be accessed in other scripts. You can either copy/paste the relevant code or import a jar with the relevant code to make it accessible to multiple scripts.