summaryrefslogtreecommitdiff
path: root/integration/test/resources/acyclic/build.sc
blob: de228b242a6926a27b9184081cd0ee48fc4dc00b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import mill.Cross
import mill.scalalib.{SbtModule, PublishModule, Dep, CrossSbtModule, DepSyntax}
import mill.scalalib.publish.{PomSettings, License, Developer, SCM}

object acyclic extends Cross[AcyclicModule]("2.10.6", "2.11.8", "2.12.3", "2.12.4")
class AcyclicModule(val crossScalaVersion: String) extends CrossSbtModule with PublishModule {
  def millSourcePath = super.millSourcePath / ammonite.ops.up
  def artifactName = "acyclic"
  def publishVersion = "0.1.7"

  def pomSettings = PomSettings(
    description = artifactName(),
    organization = "com.lihaoyi",
    url = "https://github.com/lihaoyi/acyclic",
    licenses = Seq(License.MIT),
    scm = SCM(
      "git://github.com/lihaoyi/acyclic.git",
      "scm:git://github.com/lihaoyi/acyclic.git"
    ),
    developers = Seq(
      Developer("lihaoyi", "Li Haoyi","https://github.com/lihaoyi")
    )
  )

  def ivyDeps = Agg(
    ivy"org.scala-lang:scala-compiler:${scalaVersion()}"
  )
  object test extends Tests{
    def forkWorkingDir = ammonite.ops.pwd / 'target / 'workspace / 'acyclic
    def ivyDeps = Agg(
      ivy"com.lihaoyi::utest:0.6.0"
    )
    def testFrameworks = Seq("utest.runner.Framework")
  }
}