class SpringCloudContractGradleBuildCustomizer implements BuildCustomizer<GradleBuild> {

	private static final Log logger = LogFactory.getLog(SpringCloudContractGradleBuildCustomizer.class);

	private static final MavenRepository SPRING_MILESTONES = MavenRepository
		.withIdAndUrl("spring-milestones", "https://repo.spring.io/milestone")
		.name("Spring Milestones")
		.build();

	private static final MavenRepository SPRING_SNAPSHOTS = MavenRepository
		.withIdAndUrl("spring-snapshots", "https://repo.spring.io/snapshot")
		.name("Spring Snapshots")
		.snapshotsEnabled(true)
		.build();

	private final ProjectDescription description;

	private final SpringCloudProjectVersionResolver projectsVersionResolver;

	protected SpringCloudContractGradleBuildCustomizer(ProjectDescription description,
			SpringCloudProjectVersionResolver projectsVersionResolver) {
		this.description = description;
		this.projectsVersionResolver = projectsVersionResolver;
	}

	@Override
	public void customize(GradleBuild build) {
		Version platformVersion = this.description.getPlatformVersion();
		String sccPluginVersion = this.projectsVersionResolver.resolveVersion(platformVersion,
				"org.springframework.cloud:spring-cloud-contract-verifier");
		if (sccPluginVersion == null) {
			logger.warn(
					"Spring Cloud Contract Verifier Gradle plugin version could not be resolved for Spring Boot version: "
							+ platformVersion.toString());
			return;
		}
		build.plugins().add("org.springframework.cloud.contract", (plugin) -> plugin.setVersion(sccPluginVersion));
		configureContractsDsl(build);
		if (build.dependencies().has("webflux")) {
			build.dependencies()
				.add("rest-assured-spring-web-test-client",
						Dependency.withCoordinates("io.rest-assured", "spring-web-test-client")
							.scope(DependencyScope.TEST_COMPILE));
		}
		build.tasks().customize("contractTest", (task) -> task.invoke("useJUnitPlatform"));
		configurePluginRepositories(build, sccPluginVersion);
	}

	protected abstract void configureContractsDsl(GradleBuild build);

	private void configurePluginRepositories(GradleBuild mavenBuild, String sccPluginVersion) {<FILL_FUNCTION_BODY>}

}

		Version pluginVersion = Version.parse(sccPluginVersion);
		if (pluginVersion.getQualifier() != null) {
			String qualifier = pluginVersion.getQualifier().getId();
			if (!qualifier.equals("RELEASE")) {
				mavenBuild.pluginRepositories().add(SPRING_MILESTONES);
				if (qualifier.contains("SNAPSHOT")) {
					mavenBuild.pluginRepositories().add(SPRING_SNAPSHOTS);
				}
			}
		}
	
<no_super_class>