Skip to content

Commit

Permalink
Address @jdneo feedback and update Gradle to v8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseLion committed Oct 8, 2023
1 parent 3e69390 commit d1c9668
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
fail-fast: false
matrix:
node-version: [16.14.2]
java-version: ["8", "11", "17", "19", "20", "21"]
java-version: ["8", "11", "17", "21"]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public static boolean hasCompatibilityError(Version gradleVersion, Version javaV
private static Version getLowestGradleVersion(Version javaVersion) {
// Ref: https://docs.gradle.org/current/userguide/compatibility.html
if (javaVersion.isAtLeast("21")) {
return new Version("8.4-rc-1");
// TODO: Update when support for running Gradle on Java 21 is available
return new Version("8.4");
} else if (javaVersion.isAtLeast("20")) {
return new Version("8.1");
} else if (javaVersion.isAtLeast("19")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class UtilsTest {
@Test
public void testJava21Compatibility() {
Version javaVersion = new Version("21");
Version gradleVersion = new Version("8.4-rc-1");
Version gradleVersion = new Version("8.4");
assertFalse(Utils.hasCompatibilityError(gradleVersion, javaVersion));
gradleVersion = new Version("8.1");
assertTrue(Utils.hasCompatibilityError(gradleVersion, javaVersion));
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-rc-1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down

0 comments on commit d1c9668

Please sign in to comment.