mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
fix(Templates): Set ContextClassLoader for groovy and clojure (#7955)
This commit is contained in:
parent
ca6696c7ee
commit
25263fd473
@ -65,6 +65,7 @@ public class InvokeBridge {
|
||||
private Object getInstance() throws Exception {
|
||||
URL[] urls = {this.artifact.toURI().toURL()};
|
||||
URLClassLoader child = new URLClassLoader(urls, this.getClass().getClassLoader());
|
||||
Thread.currentThread().setContextClassLoader(child);
|
||||
|
||||
this.clazz = Class.forName(this.className, true, child);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user