Search in sources :

Example 1 with GroovyCompilerConfiguration

use of org.springframework.boot.cli.compiler.GroovyCompilerConfiguration in project spring-boot by spring-projects.

the class GroovyGrabDependencyResolverTests method setupResolver.

@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);
}
Also used : GroovyCompilerConfiguration(org.springframework.boot.cli.compiler.GroovyCompilerConfiguration) RepositoryConfiguration(org.springframework.boot.cli.compiler.grape.RepositoryConfiguration) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 GroovyCompilerConfiguration (org.springframework.boot.cli.compiler.GroovyCompilerConfiguration)1 RepositoryConfiguration (org.springframework.boot.cli.compiler.grape.RepositoryConfiguration)1