Package org.gradle.tooling.model

Examples of org.gradle.tooling.model.GradleModuleVersion


  private static final String SPRING_NAME = "spring-core"; //$NON-NLS-1$
  private static final String SPRING_GROUP = "org.springframework"; //$NON-NLS-1$

  public void configure(IProjectConfigurationRequest request, IProgressMonitor monitor) throws Exception {
    for (ExternalDependency dependency : request.getGradleModel().getClasspath()) {
      GradleModuleVersion moduleVersion = dependency.getGradleModuleVersion();
      if (moduleVersion != null && SPRING_NAME.equals(moduleVersion.getName()) && SPRING_GROUP.equals(moduleVersion.getGroup())) {
        SpringCoreUtils.addProjectNature(request.getProject(), SpringCore.NATURE_ID, monitor);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.gradle.tooling.model.GradleModuleVersion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.