Skip to content

Commit

Permalink
Merge branch '2.7.x' into 3.0.x
Browse files Browse the repository at this point in the history
Closes gh-37026
  • Loading branch information
snicoll committed Aug 18, 2023
2 parents f3450fd + 6efd9ed commit 1f6d060
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,14 @@ void taskConfigurationIsAvoided() throws IOException {
if (GradleVersion.version(this.gradleBuild.getGradleVersion()).compareTo(GradleVersion.version("7.3.3")) < 0) {
assertThat(configured).containsExactly("help");
}
else {
else if (GradleVersion.version(this.gradleBuild.getGradleVersion())
.compareTo(GradleVersion.version("8.3")) < 0) {
assertThat(configured).containsExactlyInAnyOrder("help", "clean", "compileKotlin", "compileTestKotlin");
}
else {
assertThat(configured).containsExactlyInAnyOrder("help", "clean", "compileJava", "compileKotlin",
"compileTestKotlin");
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ private GradleVersions() {
@SuppressWarnings("UnstableApiUsage")
public static List<String> allCompatible() {
if (isJavaVersion(JavaVersion.VERSION_20)) {
return Arrays.asList("8.1.1", "8.2.1");
return Arrays.asList("8.1.1", "8.3");
}
return Arrays.asList("7.5.1", GradleVersion.current().getVersion(), "8.0.2", "8.2.1");
return Arrays.asList("7.5.1", GradleVersion.current().getVersion(), "8.0.2", "8.3");
}

public static String minimumCompatible() {
Expand Down

0 comments on commit 1f6d060

Please sign in to comment.