Skip to content

Commit

Permalink
Merge branch '3.0.x' into 3.1.x
Browse files Browse the repository at this point in the history
Closes gh-37027
  • Loading branch information
snicoll committed Aug 18, 2023
2 parents 958f924 + 1f6d060 commit d9cc6e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@ 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");
}
else {
assertThat(configured).containsExactlyInAnyOrder("help", "clean", "compileJava");
}
}

}
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 d9cc6e8

Please sign in to comment.