Merge branch 'master' into 2.0.x

This commit is contained in:
Marcin Grzejszczak
2017-11-21 16:35:31 +01:00
3 changed files with 11 additions and 5 deletions

View File

@@ -162,8 +162,10 @@ public class AetherStubDownloader implements StubDownloader {
Artifact artifact = new DefaultArtifact(stubsGroup, stubsModule, classifier,
ARTIFACT_EXTENSION, resolvedVersion);
ArtifactRequest request = new ArtifactRequest(artifact, this.remoteRepos, null);
log.info("Resolving artifact [" + artifact
+ "] using remote repositories " + this.remoteRepos);
if (log.isDebugEnabled()) {
log.debug("Resolving artifact [" + artifact
+ "] using remote repositories " + this.remoteRepos);
}
try {
ArtifactResult result = this.repositorySystem.resolveArtifact(this.session, request);
log.info("Resolved artifact [" + artifact + "] to "

View File

@@ -92,7 +92,9 @@ public class ContractDownloader {
}
private File unpackAndDownloadContracts() {
log.info("Will download contracts for [" + this.contractsJarStubConfiguration + "]");
if (log.isDebugEnabled()) {
log.debug("Will download contracts for [" + this.contractsJarStubConfiguration + "]");
}
Map.Entry<StubConfiguration, File> unpackedContractStubs = this.stubDownloader
.downloadAndUnpackStubJar(this.contractsJarStubConfiguration);
if (unpackedContractStubs == null) {

View File

@@ -87,8 +87,10 @@ class MavenContractsDownloader {
private StubDownloader stubDownloader() {
StubDownloaderBuilder builder = this.stubDownloaderBuilderProvider.get();
if (StringUtils.hasText(this.contractsRepositoryUrl) || this.contractsWorkOffline) {
this.log.info("Will download contracts from [" + this.contractsRepositoryUrl + "]. "
+ "Work offline switch equals to [" + this.contractsWorkOffline + "]");
if (this.log.isDebugEnabled()) {
this.log.debug("Will download contracts from [" + this.contractsRepositoryUrl + "]. "
+ "Work offline switch equals to [" + this.contractsWorkOffline + "]");
}
if (builder != null) {
logStubDownloader(builder);
return builder.build(buildOptions());