in initializer-generator/src/main/java/io/spring/start/site/extension/dependency/springcloud/SpringCloudFunctionBuildCustomizer.java [70:90]
private void removeCloudFunction(Build build) {
Dependency cloudFunction = this.metadata.getDependencies().get("cloud-function");
// We should make sure whatever metadata this entry convey isn't lost
// This is a workaround until we provide a feature to deal with this automatically
if (cloudFunction.getBom() != null) {
BillOfMaterials bom = resolveBom(cloudFunction.getBom());
if (bom != null) {
build.boms().add(cloudFunction.getBom());
if (bom.getVersionProperty() != null) {
build.properties().version(bom.getVersionProperty(), bom.getVersion());
}
if (!ObjectUtils.isEmpty(bom.getRepositories())) {
bom.getRepositories().forEach((repository) -> build.repositories().add(repository));
}
}
}
if (cloudFunction.getRepository() != null) {
build.repositories().add(cloudFunction.getRepository());
}
build.dependencies().remove("cloud-function");
}