
io.redskap.swagger.brake.cli.options.handler.MavenRepoUrlHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-brake Show documentation
Show all versions of swagger-brake Show documentation
Swagger contract checker for breaking API changes
package io.redskap.swagger.brake.cli.options.handler;
import io.redskap.swagger.brake.cli.options.CliOptions;
import io.redskap.swagger.brake.runner.Options;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
@Component
public class MavenRepoUrlHandler implements CliOptionHandler {
@Override
public void handle(String propertyValue, Options options) {
if (StringUtils.isNotBlank(propertyValue)) {
options.setMavenRepoUrl(propertyValue);
}
}
@Override
public String getHandledPropertyName() {
return CliOptions.MAVEN_REPO_URL;
}
@Override
public String getHelpMessage() {
return "Specifies the Nexus snapshot repository URL where the latest artifact denoted by the groupId and artifactId will be downloaded";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy