io.redskap.swagger.brake.runner.Starter 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.runner;
import io.redskap.swagger.brake.core.CoreConfiguration;
import io.redskap.swagger.brake.maven.MavenConfiguration;
import io.redskap.swagger.brake.report.ReporterConfiguration;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class Starter {
public static void start(Options options) {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(RunnerConfiguration.class, ReporterConfiguration.class,
MavenConfiguration.class, CoreConfiguration.class);
context.getBean(Runner.class).run(options);
}
}