public final class JarResolverImpl extends java.lang.Object implements JarResolver
| Constructor and Description |
|---|
JarResolverImpl(Releases releases,
SourceBuilds sourceBuilds,
Downloads downloads) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
resolve(ResolutionRequest request) |
public JarResolverImpl(Releases releases, SourceBuilds sourceBuilds, Downloads downloads)
releases - the capability to dispatch a release-strategy request to.sourceBuilds - the capability to dispatch a source- or git-strategy request to.downloads - the capability to dispatch a url-strategy request to.public java.io.File resolve(ResolutionRequest request) throws java.io.IOException
resolve in interface JarResolverrequest - the coordinate to resolve.java.io.IOException - if request names a source or git build and the underlying
SourceBuilds.buildFromSource(java.lang.String, java.lang.String, java.lang.String, java.lang.String) call fails, or names a url download and the underlying
Downloads.download(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String) call fails.ReleaseNotFoundException - if request names a release and no matching jar is found.