Skip to content

Commit

Permalink
Fix ECJ test by constraining Java versions
Browse files Browse the repository at this point in the history
  • Loading branch information
alllex committed Feb 27, 2023
1 parent 74bdc8a commit 277e222
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,12 @@ class JavaCompileToolchainIntegrationTest extends AbstractIntegrationSpec implem
}

@Issue("https://github.com/gradle/gradle/issues/23990")
@Requires(TestPrecondition.JDK11_OR_LATER)
def "can compile with a custom compiler executable"() {
def jdk = AvailableJavaHomes.getJdk(JavaVersion.current())
def otherJdk = AvailableJavaHomes.differentVersion
def otherJdk = AvailableJavaHomes.getJdk(JavaVersion.current())
def jdk = AvailableJavaHomes.getDifferentVersion {
def v = it.languageVersion.majorVersion.toInteger()
11 <= v && v <= 18 // Java versions supported by ECJ releases used in the test
}

buildFile << """
plugins {
Expand Down

0 comments on commit 277e222

Please sign in to comment.