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);
}
}
}