Skip to content

Commit

Permalink
Run compatibility tests against Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelocenerine committed Nov 25, 2023
1 parent 9a3818b commit 594b816
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
matrix:
java_version:
- "8"
- "11"
- "21"
gradle_version:
- "4.10"
- "4.10.3"
- "5.1.1"
- "5.6.4"
- "6.0.1"
Expand All @@ -41,6 +41,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: 'zulu'
# Version required to run the `./gradlew` command. The tests themselves use the version provided via `java_version`
java-version: '11'
- name: Run Gradle compat tests for Gradle ${{ matrix.gradle_version }} on Java ${{ matrix.java_version }}
run: ./gradlew compatTestJava${{ matrix.java_version }}Gradle${{ matrix.gradle_version }}
run: ./gradlew compatTestJava${{ matrix.java_version }}Gradle${{ matrix.gradle_version }} --stacktrace
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on Gradle projects. It supports both syntactic and semantic rules and lets you l

- **Gradle:** `4.10` or later (except `5.0`)
- **Scala:** `2.12.x`, `2.13.x` and `3.x` (requires [Gradle 7.3](https://docs.gradle.org/7.3/release-notes.html) or later)
- **JDK:** `11` or later
- **JDK:** `8` or later

 
## Usage
Expand Down
15 changes: 8 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
languageVersion = JavaLanguageVersion.of(8) // target version
}
}

Expand Down Expand Up @@ -55,17 +55,18 @@ stutter {
languageVersion = JavaLanguageVersion.of(8)
}
gradleVersions {
compatible '4.10'
compatibleRange '5.1'
compatibleRange '4.10', '5.0'
compatibleRange '5.1', '8.5-rc-1'
}
}
java11 {

java21 {
javaToolchain {
languageVersion = JavaLanguageVersion.of(11)
languageVersion = JavaLanguageVersion.of(21)
}
gradleVersions {
compatible '4.10'
compatibleRange '5.1'
compatibleRange '4.10', '5.0'
compatibleRange '5.1', '8.5-rc-1'
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions stutter.lockfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# DO NOT MODIFY: Generated by Stutter plugin.
java11=4.10,5.1.1,5.6.4,6.0.1,6.9.4,7.0.2,7.6.3,8.0.2,8.4
java8=4.10,5.1.1,5.6.4,6.0.1,6.9.4,7.0.2,7.6.3,8.0.2,8.4
java21=4.10.3,5.1.1,5.6.4,6.0.1,6.9.4,7.0.2,7.6.3,8.0.2,8.4
java8=4.10.3,5.1.1,5.6.4,6.0.1,6.9.4,7.0.2,7.6.3,8.0.2,8.4

0 comments on commit 594b816

Please sign in to comment.