Class AetherStubDownloader
java.lang.Object
org.springframework.cloud.contract.stubrunner.AetherStubDownloader
- All Implemented Interfaces:
StubDownloader
- Author:
- Mariusz Smykula, EddĂș MelĂ©ndez
-
Constructor Summary
ConstructorsConstructorDescriptionAetherStubDownloader(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
Modifier and TypeMethodDescriptiondownloadAndUnpackStubJar(StubConfiguration stubConfiguration) Note: Actually the artifact doesn't have to be a JAR. method name contains that suffix or historical reasons.
-
Constructor Details
-
AetherStubDownloader
-
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 Details
-
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.
-