@Before public void setupResolver() { GroovyCompilerConfiguration configuration = new GroovyCompilerConfiguration() { @Override public boolean isGuessImports() { return true; } @Override public boolean isGuessDependencies() { return true; } @Override public boolean isAutoconfigure() { return false; } @Override public GroovyCompilerScope getScope() { return GroovyCompilerScope.DEFAULT; } @Override public List<RepositoryConfiguration> getRepositoryConfiguration() { return RepositoryConfigurationFactory .createDefaultRepositoryConfiguration(); } @Override public String[] getClasspath() { return new String[] { "." }; } }; this.resolver = new GroovyGrabDependencyResolver(configuration); }
@Override public GroovyCompilerScope getScope() { return GroovyCompilerScope.DEFAULT; }