Codota Logo
RepositoryConfigurationFactory.createDefaultRepositoryConfiguration
Code IndexAdd Codota to your IDE (free)

How to use
createDefaultRepositoryConfiguration
method
in
org.springframework.boot.cli.compiler.RepositoryConfigurationFactory

Best Java code snippets using org.springframework.boot.cli.compiler.RepositoryConfigurationFactory.createDefaultRepositoryConfiguration (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.springframework.boot/spring-boot-cli

protected OptionSetGroovyCompilerConfiguration(OptionSet optionSet,
    CompilerOptionHandler compilerOptionHandler) {
  this(optionSet, compilerOptionHandler,
      RepositoryConfigurationFactory.createDefaultRepositoryConfiguration());
}
origin: org.springframework.boot/spring-boot-cli

private static GroovyCompilerConfiguration createCompilerConfiguration(
    OptionSet options, CompilerOptionHandler compilerOptionHandler) {
  List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
      .createDefaultRepositoryConfiguration();
  return new OptionSetGroovyCompilerConfiguration(options, compilerOptionHandler,
      repositoryConfiguration) {
    @Override
    public boolean isAutoconfigure() {
      return false;
    }
  };
}
origin: com.github.igor-suhorukov/aether-grape

public static void install(GroovyClassLoader classLoader) {
  install(classLoader, new DependencyResolutionContext(), RepositoryConfigurationFactory
      .createDefaultRepositoryConfiguration());
}
origin: spring-cloud/spring-cloud-cli

private URLClassLoader populateClassloader(OptionSet options)
    throws MalformedURLException {
  DependencyResolutionContext resolutionContext = new DependencyResolutionContext();
  List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
      .createDefaultRepositoryConfiguration();
  repositoryConfiguration.add(0, new RepositoryConfiguration("local",
      new File("repository").toURI(), true));
  boolean quiet = true;
  if (options.has(debugOption)) {
    System.setProperty("groovy.grape.report.downloads", "true");
    quiet = false;
  }
  AetherGrapeEngine grapeEngine = AetherGrapeEngineFactory.create(null,
      repositoryConfiguration, resolutionContext, quiet);
  HashMap<String, Object> dependency = new HashMap<>();
  dependency.put("group", "org.springframework.cloud.launcher");
  dependency.put("module", "spring-cloud-launcher-deployer");
  dependency.put("version", getVersion());
  dependency.put("transitive", false);
  URI[] uris = grapeEngine.resolve(null, dependency);
  URLClassLoader loader = new URLClassLoader(new URL[] { uris[0].toURL() },
      getClass().getClassLoader().getParent().getParent());
  log.debug("resolved URIs " + Arrays.asList(loader.getURLs()));
  return loader;
}
origin: org.springframework.boot/spring-boot-cli

private GroovyCompiler createCompiler(OptionSet options) {
  List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
      .createDefaultRepositoryConfiguration();
  GroovyCompilerConfiguration configuration = new OptionSetGroovyCompilerConfiguration(
      options, this, repositoryConfiguration);
  GroovyCompiler groovyCompiler = new GroovyCompiler(configuration);
  groovyCompiler.getAstTransformations().add(0, new GrabAnnotationTransform());
  return groovyCompiler;
}
origin: com.github.igor-suhorukov/aether-grape

public DefaultAetherGrapeEngine() {
  groovyClassLoader = getGroovyClassLoader();
  grapeEngine = AetherGrapeEngineFactory.create(groovyClassLoader,
      RepositoryConfigurationFactory.createDefaultRepositoryConfiguration(),
      new DependencyResolutionContext());
}
origin: org.springframework.boot/spring-boot-cli

@Override
protected ExitStatus run(OptionSet options) throws Exception {
  SourceOptions sourceOptions = new SourceOptions(options);
  List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
      .createDefaultRepositoryConfiguration();
  GroovyCompilerConfiguration configuration = new OptionSetGroovyCompilerConfiguration(
      options, this, repositoryConfiguration);
  if (System.getProperty("grape.root") == null) {
    System.setProperty("grape.root", ".");
  }
  GroovyCompiler groovyCompiler = new GroovyCompiler(configuration);
  groovyCompiler.compile(sourceOptions.getSourcesArray());
  return ExitStatus.OK;
}
origin: org.springframework.boot/spring-boot-cli

@Override
protected synchronized ExitStatus run(OptionSet options) throws Exception {
  synchronized (this.monitor) {
    if (this.runner != null) {
      throw new RuntimeException(
          "Already running. Please stop the current application before running another (use the 'stop' command).");
    }
    SourceOptions sourceOptions = new SourceOptions(options);
    List<RepositoryConfiguration> repositoryConfiguration = RepositoryConfigurationFactory
        .createDefaultRepositoryConfiguration();
    repositoryConfiguration.add(0, new RepositoryConfiguration("local",
        new File("repository").toURI(), true));
    SpringApplicationRunnerConfiguration configuration = new SpringApplicationRunnerConfigurationAdapter(
        options, this, repositoryConfiguration);
    this.runner = new SpringApplicationRunner(configuration,
        sourceOptions.getSourcesArray(), sourceOptions.getArgsArray());
    this.runner.compileAndRun();
    return ExitStatus.OK;
  }
}
org.springframework.boot.cli.compilerRepositoryConfigurationFactorycreateDefaultRepositoryConfiguration

Javadoc

Create a new default repository configuration.

Popular methods of RepositoryConfigurationFactory

  • addActiveProfileRepositories
  • addDefaultCacheAsRepository
  • getLocalRepositoryDirectory
  • getM2HomeDirectory
  • getRepositoryConfiguration
  • interpolate

Popular in Java

  • Reactive rest calls using spring rest template
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • onRequestPermissionsResult (Fragment)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ImageIO (javax.imageio)
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now