Class JarResolverImpl
java.lang.Object
io.github.intisy.gradle.github.impl.JarResolverImpl
- All Implemented Interfaces:
JarResolver
-
Constructor Summary
ConstructorsConstructorDescriptionJarResolverImpl(Releases releases, SourceBuilds sourceBuilds, Downloads downloads) -
Method Summary
-
Constructor Details
-
JarResolverImpl
- Parameters:
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.
-
-
Method Details
-
resolve
- Specified by:
resolvein interfaceJarResolver- Parameters:
request- the coordinate to resolve.- Returns:
- the resolved jar file; never null.
- Throws:
IOException- ifrequestnames a source or git build and the underlyingSourceBuilds.buildFromSource(java.lang.String, java.lang.String, java.lang.String, java.lang.String)call fails, or names a url download and the underlyingDownloads.download(java.lang.String, java.util.Map<java.lang.String, java.lang.String>, java.lang.String)call fails.ReleaseNotFoundException- ifrequestnames a release and no matching jar is found.
-