Skip to content

Commit

Permalink
Fix and broaden version compatility tests
Browse files Browse the repository at this point in the history
We cannot test against Gradle 5+ as it dropped support for the Gradle
2.9 tooling API.
  • Loading branch information
wilkinsona committed Jan 17, 2020
1 parent 95d445b commit b26a31b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,16 @@ class GradleVersionCompatibilitySpec extends Specification {
"""

when:
def result = GradleRunner.create().withProjectDir(projectFolder.root).withArguments("resolve").build()
def result = GradleRunner.create().withProjectDir(projectFolder.root).withArguments("resolve")
.withGradleVersion(gradleVersion).build()

then:
result.task(":resolve").outcome == TaskOutcome.SUCCESS

where:
gradleVersion << ['2.9', '2.10', '2.11', '2.12', '2.13', '2.14', '2.14.1', '3.0', '3.1', '3.2', '3.3', '3.4',
'3.4.1', '3.5', '3.5.1', '4.0', '4.1', '4.2', '4.2.1', '4.3', '4.3.1', '4.4', '4.4.1']
gradleVersion << ['2.9', '2.10', '2.11', '2.12', '2.13', '2.14.1', '3.0', '3.1', '3.2', '3.3', '3.4',
'3.4.1', '3.5.1', '4.0', '4.1', '4.2.1', '4.3.1', '4.4.1', '4.5.1', '4.6', '4.7',
'4.8', '4.9', '4.10.2']
}

}

0 comments on commit b26a31b

Please sign in to comment.