|
|
|
@ -40,6 +40,7 @@ class SpringBootVersionVerifier implements CompatibilityVerifier {
@@ -40,6 +40,7 @@ class SpringBootVersionVerifier implements CompatibilityVerifier {
|
|
|
|
|
this.put("2.0", is2_0()); |
|
|
|
|
this.put("2.1", is2_1()); |
|
|
|
|
this.put("2.2", is2_2()); |
|
|
|
|
this.put("2.3", is2_3()); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -162,6 +163,30 @@ class SpringBootVersionVerifier implements CompatibilityVerifier {
@@ -162,6 +163,30 @@ class SpringBootVersionVerifier implements CompatibilityVerifier {
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
CompatibilityPredicate is2_3() { |
|
|
|
|
return new CompatibilityPredicate() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String toString() { |
|
|
|
|
return "Predicate for Boot 2.3"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean isCompatible() { |
|
|
|
|
try { |
|
|
|
|
// since 2.3
|
|
|
|
|
Class.forName( |
|
|
|
|
"org.springframework.boot.context.propertie.BoundConfigurationProperties"); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
catch (ClassNotFoundException e) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private String errorDescription() { |
|
|
|
|
String versionFromManifest = getVersionFromManifest(); |
|
|
|
|
if (StringUtils.hasText(versionFromManifest)) { |
|
|
|
|