"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "spring-boot-project/spring-boot-tools/spring-boot-gradle-test-support/src/main/java/org/springframework/boot/testsupport/gradle/testkit/GradleVersions.java" between
spring-boot-2.7.3.tar.gz and spring-boot-2.7.4.tar.gz

About: Spring Boot helps to create Spring-powered, production-grade applications and services.

GradleVersions.java  (spring-boot-2.7.3):GradleVersions.java  (spring-boot-2.7.4)
skipping to change at line 37 skipping to change at line 37
* *
* @author Scott Frederick * @author Scott Frederick
*/ */
public final class GradleVersions { public final class GradleVersions {
private GradleVersions() { private GradleVersions() {
} }
public static List<String> allCompatible() { public static List<String> allCompatible() {
if (isJava18()) { if (isJava18()) {
return Arrays.asList("7.3.3", "7.4.2", "7.5.1"); return Arrays.asList("7.3.3", "7.4.2", GradleVersion.curr ent().getVersion());
} }
if (isJava17()) { if (isJava17()) {
return Arrays.asList("7.2", "7.3.3", "7.4.2", "7.5.1"); return Arrays.asList("7.2", "7.3.3", "7.4.2", GradleVersi on.current().getVersion());
} }
if (isJava16()) { if (isJava16()) {
return Arrays.asList("7.0.2", "7.1", "7.2", "7.3.3", "7.4 .2", "7.5.1"); return Arrays.asList("7.0.2", "7.1", "7.2", "7.3.3", "7.4 .2", GradleVersion.current().getVersion());
} }
return Arrays.asList("6.8.3", GradleVersion.current().getVersion( return Arrays.asList("6.8.3", "6.9.2", "7.0.2", "7.1.1", "7.2", "
), "7.0.2", "7.1.1", "7.2", "7.3.3", "7.4.2", 7.3.3", "7.4.2",
"7.5.1"); GradleVersion.current().getVersion());
} }
public static String currentOrMinimumCompatible() { public static String minimumCompatible() {
if (isJava17()) { return allCompatible().get(0);
return "7.3.3";
}
if (isJava16()) {
return "7.0.2";
}
return GradleVersion.current().getVersion();
} }
private static boolean isJava18() { private static boolean isJava18() {
return JavaVersion.current().isCompatibleWith(JavaVersion.VERSION _HIGHER); return JavaVersion.current().isCompatibleWith(JavaVersion.VERSION _18);
} }
private static boolean isJava17() { private static boolean isJava17() {
return JavaVersion.current().isCompatibleWith(JavaVersion.VERSION _17); return JavaVersion.current().isCompatibleWith(JavaVersion.VERSION _17);
} }
private static boolean isJava16() { private static boolean isJava16() {
return JavaVersion.current().isCompatibleWith(JavaVersion.VERSION _16); return JavaVersion.current().isCompatibleWith(JavaVersion.VERSION _16);
} }
 End of changes. 6 change blocks. 
15 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)