private GroovyShell createShell() {
    CompilerConfiguration compilerSettings = new CompilerConfiguration();
    compilerSettings.setScriptBaseClass(DelegatingScript.class.getName());
    return new GroovyShell(getClass().getClassLoader(), new Binding(), compilerSettings);
  }
For testing purposes. Do not use directly.
spock-core/src/main/java/org/spockframework/runtime/ConfigurationScriptLoader.java