Removed deprecations
This commit is contained in:
@@ -108,7 +108,7 @@ public class PushStubsToScmMojo extends AbstractMojo {
|
||||
+ this.skip + ", spring.cloud.contract.verifier.publish-stubs-to-scm.skip=" + this.taskSkip);
|
||||
return;
|
||||
}
|
||||
if (StringUtils.isEmpty(this.contractsRepositoryUrl)
|
||||
if (!StringUtils.hasText(this.contractsRepositoryUrl)
|
||||
|| !ScmStubDownloaderBuilder.isProtocolAccepted(this.contractsRepositoryUrl)) {
|
||||
getLog().info("Skipping pushing stubs to scm since your "
|
||||
+ "[contractsRepositoryUrl] property doesn't match any of the accepted protocols");
|
||||
|
||||
@@ -133,7 +133,7 @@ public class RunMojo extends AbstractMojo {
|
||||
BatchStubRunner batchStubRunner = null;
|
||||
StubRunnerOptionsBuilder optionsBuilder = new StubRunnerOptionsBuilder()
|
||||
.withStubsClassifier(this.stubsClassifier);
|
||||
if (StringUtils.isEmpty(this.stubs)) {
|
||||
if (!StringUtils.hasText(this.stubs)) {
|
||||
StubRunnerOptions options = optionsBuilder.withMinMaxPort(this.httpPort, this.httpPort).build();
|
||||
StubRunner stubRunner = this.localStubRunner.run(resolveStubsDirectory().getAbsolutePath(), options);
|
||||
batchStubRunner = new BatchStubRunner(Collections.singleton(stubRunner));
|
||||
|
||||
Reference in New Issue
Block a user