All Downloads are FREE. Search and download functionalities are using the official Maven repository.

netflix.nebula.dependency.recommender.provider.CustomRecommendationProvider Maven / Gradle / Ivy

Go to download

Allows projects to leave off version numbers in dependencies section and have versions recommended by other sources

There is a newer version: 12.5.1
Show newest version
package netflix.nebula.dependency.recommender.provider;

import groovy.lang.Closure;
public class CustomRecommendationProvider extends AbstractRecommendationProvider {
    private Closure versionFunction;

    public CustomRecommendationProvider(Closure versionFunction) {
        this.versionFunction = versionFunction;
    }

    @Override
    public String getVersion(String org, String name) {
        return (String) versionFunction.call(org, name);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy