Skip to content

Commit

Permalink
Adjust compatibility test to work on jdk 17
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Nov 9, 2021
1 parent 87700c1 commit 189d578
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/test/kotlin/de/smartsquare/squit/GradleCompatibilityTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,16 @@ class GradleCompatibilityTest {
@JvmStatic
fun provideVersions(): Stream<Arguments> {
val result = mutableListOf(
Arguments.of(GradleVersion.current()),
Arguments.of(GradleVersion.version("7.0"))
Arguments.of(GradleVersion.current())
)

// These older Gradle Versions do not work on Java 17+.
if (JavaVersion.current() <= JavaVersion.VERSION_16) {
result += listOf(
Arguments.of(GradleVersion.version("7.0"))
)
}

// These older Gradle Versions do not work on Java 16+.
if (JavaVersion.current() <= JavaVersion.VERSION_15) {
result += listOf(
Expand Down

0 comments on commit 189d578

Please sign in to comment.