Fixed class loading bug.

This commit is contained in:
JesseBrault0709 2024-06-01 17:26:43 +02:00
parent 8b7ffd64f8
commit f514bc533f

View File

@ -57,6 +57,11 @@ public class DefaultWebViewComponentTemplateCompiler
);
compileUnit.getGroovyCompilationUnit().addSource(sourceUnit);
// set the groovy compile unit's class loader to the configuration's classloader.
compileUnit.getGroovyCompilationUnit().setClassLoader(
this.configuration.getGroovyClassLoader()
);
// compile groovy
try {
compileUnit.getGroovyCompilationUnit().compile(this.configuration.getToCompilePhase().getPhaseNumber());