in initializer-generator/src/main/java/io/spring/start/site/extension/dependency/springcloud/SpringCloudFunctionHelpDocumentCustomizer.java [72:95]
private void addBuildSetupInfo(HelpDocument helpDocument) {
Version bootVersion = this.description.getPlatformVersion();
String springCloudFunctionVersion = this.projectVersionResolver.resolveVersion(bootVersion,
"org.springframework.cloud:spring-cloud-function-core");
if (springCloudFunctionVersion == null) {
logger.warn("Spring Cloud Function version could not be resolved for Spring Boot version: "
+ bootVersion.toString());
return;
}
if (isSnapshot(springCloudFunctionVersion)) {
logger.debug("Spring Cloud Function version " + springCloudFunctionVersion
+ " is a snapshot. No documents are present for this version to link to.");
return;
}
String buildSystemId = this.description.getBuildSystem().id();
Map<Boolean, List<CloudPlatform>> platformsByBuildSystemSupport = cloudPlatformsFromDependencies().stream()
.collect(Collectors.partitioningBy(
(cloudPlatform) -> cloudPlatform.getSupportedBuildSystems().contains(buildSystemId)));
platformsByBuildSystemSupport.get(true).forEach((cloudPlatform) -> helpDocument.nextSteps().addSection(
getSection(springCloudFunctionVersion, buildSystemId, cloudPlatform, getTemplateName(cloudPlatform))));
platformsByBuildSystemSupport.get(false)
.forEach((cloudPlatform) -> helpDocument.nextSteps().addSection(getSection(springCloudFunctionVersion,
buildSystemId, cloudPlatform, "spring-cloud-function-build-setup-missing")));
}