BuildScriptTransformer transformer = new BuildScriptTransformer("no_" + classpathScriptTransformer.getId(), classpathScriptTransformer.invert(), scriptSource);
compiler.setTransformer(transformer);
// TODO - find a less tangled way of getting this in here, see the verifier impl for why it's needed
compiler.setVerifier(new ClosureCreationInterceptingVerifier());
ScriptRunner<? extends BasicScript> runner = compiler.compile(scriptType);
BasicScript script = runner.getScript();
script.init(target, services);