slachiewicz opened a new pull request, #213: URL: https://github.com/apache/maven-script-interpreter/pull/213
The interpreter ran scripts through a `RootLoader`, which is child-first for every class, so a different Groovy version on the caller-supplied class path (what the invoker plugin's `addTestClassPath` typically brings in) shadowed the Groovy the scripts are compiled with and the compiled script could not be cast to `groovy.lang.GroovyObject`. Classes in the `groovy.`, `org.codehaus.groovy.` and `org.apache.groovy.` packages now come from the parent loader, and everything else stays child-first. Fixes apache/maven-invoker-plugin#642 *This change was created with AI assistance.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
