Search in sources :

Example 1 with DependencyResolvers

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;
}
Also used : DependencyResolvers(org.eclipse.ceylon.cmr.api.DependencyResolvers) DependencyResolver(org.eclipse.ceylon.cmr.api.DependencyResolver)

Aggregations

DependencyResolver (org.eclipse.ceylon.cmr.api.DependencyResolver)1 DependencyResolvers (org.eclipse.ceylon.cmr.api.DependencyResolvers)1