use of org.eclipse.ceylon.cmr.api.DependencyResolvers in project ceylon by eclipse.
the class Configuration method getResolvers.
public static DependencyResolvers getResolvers(RepositoryManager manager) {
DependencyResolvers resolvers = new DependencyResolvers();
resolvers.addResolver(BytecodeUtils.INSTANCE);
DependencyResolver jsResolver = getJavaScriptResolver();
if (jsResolver != null) {
resolvers.addResolver(jsResolver);
}
resolvers.addResolver(PropertiesDependencyResolver.INSTANCE);
resolvers.addResolver(XmlDependencyResolver.INSTANCE);
if (usesMaven(manager)) {
DependencyResolver mavenResolver = getMavenResolver();
if (mavenResolver != null) {
resolvers.addResolver(mavenResolver);
}
}
resolvers.addResolver(OSGiDependencyResolver.INSTANCE);
DependencyResolver npmResolver = getNpmResolver();
if (npmResolver != null) {
resolvers.addResolver(npmResolver);
}
return resolvers;
}
Aggregations