Class AetherStubDownloader
- java.lang.Object
-
- org.springframework.cloud.contract.stubrunner.AetherStubDownloader
-
- All Implemented Interfaces:
StubDownloader
public class AetherStubDownloader extends Object implements StubDownloader
- Author:
- Mariusz Smykula, EddĂș MelĂ©ndez
-
-
Constructor Summary
Constructors Constructor Description AetherStubDownloader(org.eclipse.aether.RepositorySystem repositorySystem, List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories, org.eclipse.aether.RepositorySystemSession session, shaded.org.apache.maven.settings.Settings settings)Used by the Maven Plugin.AetherStubDownloader(StubRunnerOptions stubRunnerOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map.Entry<StubConfiguration,File>downloadAndUnpackStubJar(StubConfiguration stubConfiguration)Note: Actually the artifact doesn't have to be a JAR.
-
-
-
Constructor Detail
-
AetherStubDownloader
public AetherStubDownloader(StubRunnerOptions stubRunnerOptions)
-
AetherStubDownloader
public AetherStubDownloader(org.eclipse.aether.RepositorySystem repositorySystem, List<org.eclipse.aether.repository.RemoteRepository> remoteRepositories, org.eclipse.aether.RepositorySystemSession session, shaded.org.apache.maven.settings.Settings settings)Used by the Maven Plugin.- Parameters:
repositorySystem- Maven repository systemremoteRepositories- remote artifact repositoriessession- repository system session
-
-
Method Detail
-
downloadAndUnpackStubJar
public Map.Entry<StubConfiguration,File> downloadAndUnpackStubJar(StubConfiguration stubConfiguration)
Description copied from interface:StubDownloaderNote: Actually the artifact doesn't have to be a JAR. method name contains that suffix or historical reasons.- Specified by:
downloadAndUnpackStubJarin interfaceStubDownloader- Parameters:
stubConfiguration- configuration for which contracts and stubs should be resolved- Returns:
- a mapping of updated StubConfiguration (it will contain the resolved
version) and the location of the downloaded stubs. If there was no artifact this
method will return
null.
-
-