Skip to content

Commit

Permalink
Skip twirlCompile tests on java 8
Browse files Browse the repository at this point in the history
  • Loading branch information
lolgab committed Nov 7, 2023
1 parent ec6a86f commit 097dbd1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contrib/twirllib/test/src/mill/twirllib/HelloWorldTests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ trait HelloWorldTests extends TestSuite {

def skipUnsupportedVersions(test: => Unit) = {
testTwirlVersion match {
case s"1.$minor.$_"
if minor.toIntOption.exists(_ > 5) && !scala.util.Properties.isJavaAtLeast(11) =>
case s"1.$minor.$_" if minor.toIntOption.exists(_ < 6) =>
test
case _ if !scala.util.Properties.isJavaAtLeast(11) =>
System.err.println(s"Skipping since twirl $testTwirlVersion doesn't support Java 8")
case _ => test
}
Expand Down

0 comments on commit 097dbd1

Please sign in to comment.