public static Optional < String > getSpringBootVersion ( MavenProject mavenProject ) { return Optional . ofNullable ( MavenUtil . getDependencyVersion ( mavenProject , SpringBootConfigurationHelper . SPRING_BOOT_GROUP_ID , SpringBootConfigurationHelper . SPRING_BOOT_ARTIFACT_ID ) ) ; }
Determine the spring - boot major version for the current project