in initializer-generator/src/main/java/io/spring/start/site/extension/dependency/springcloud/SpringCloudStreamBuildCustomizer.java [39:63]
public void customize(Build build) {
if (hasDependency("cloud-stream", build) || hasDependency("cloud-bus", build)) {
if (hasDependency("amqp", build)) {
build.dependencies().add("cloud-stream-binder-rabbit", "org.springframework.cloud",
"spring-cloud-stream-binder-rabbit", DependencyScope.COMPILE);
}
if (hasDependency("kafka", build)) {
build.dependencies().add("cloud-stream-binder-kafka", "org.springframework.cloud",
"spring-cloud-stream-binder-kafka", DependencyScope.COMPILE);
}
}
// Spring Cloud Stream specific
if (hasDependency("cloud-stream", build)) {
if (hasDependency("kafka-streams", build)) {
build.dependencies().add("cloud-stream-binder-kafka-streams", "org.springframework.cloud",
"spring-cloud-stream-binder-kafka-streams", DependencyScope.COMPILE);
}
// TODO: https://github.com/spring-io/initializr/issues/1159
if (build instanceof MavenBuild) {
build.dependencies().add("cloud-stream-test",
Dependency.withCoordinates("org.springframework.cloud", "spring-cloud-stream")
.classifier("test-binder").type("test-jar").scope(DependencyScope.TEST_COMPILE));
}
}
}