Removed deprecations

This commit is contained in:
Marcin Grzejszczak
2021-11-16 22:59:15 +01:00
parent bf1c8af2e3
commit 6fd4280d12
32 changed files with 197 additions and 659 deletions

View File

@@ -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");

View File

@@ -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));