summaryrefslogtreecommitdiff
path: root/integration/test/src/mill/integration/CaffeineTests.scala
blob: 121a87013034d82428c753af752ad97ba5a95774 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package mill.integration

import utest._

class CaffeineTests(fork: Boolean) extends IntegrationTestSuite("MILL_CAFFEINE_REPO", "caffeine", fork) {
  val tests = Tests{
    initWorkspace()
    'test - {
      // Caffeine only can build using Java 9 or up. Java 8 results in weird
      // type inference issues during the compile
      if (mill.client.ClientServer.isJava9OrAbove){
        assert(eval(s"caffeine.test.compile"))
        assert(eval(s"caffeine.test"))
        assert(eval(s"guava.test.compile"))
        assert(eval(s"jcache.test.compile"))
        assert(eval(s"simulator.test.compile"))
      }
    }

  }
}