aboutsummaryrefslogtreecommitdiff
path: root/sbt-bridge/src/sbt-test/source-dependencies/restore-classes/build.sbt
blob: 2231204ea3bf2d05d2f207e5cffaa04cc66d4f83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import complete.DefaultParsers._

crossTarget in Compile := target.value

val checkIterations = inputKey[Unit]("Verifies the accumlated number of iterations of incremental compilation.")

checkIterations := {
        val expected: Int = (Space ~> NatBasic).parsed
        val actual: Int = (compile in Compile).value.compilations.allCompilations.size
        assert(expected == actual, s"Expected $expected compilations, got $actual")
}