diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-12-10 14:43:12 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-12-10 14:43:12 -0800 |
commit | 4a7e9f6da30f3997fcf6b3a41db07ff837708e67 (patch) | |
tree | eeb0938dfe9f5e1435040736c12ecbea62d4ce70 /build.sc | |
parent | bcbc6d2c36bfb4a3dfaa0f5572e2914fec69297d (diff) | |
download | mill-4a7e9f6da30f3997fcf6b3a41db07ff837708e67.tar.gz mill-4a7e9f6da30f3997fcf6b3a41db07ff837708e67.tar.bz2 mill-4a7e9f6da30f3997fcf6b3a41db07ff837708e67.zip |
Implement a `SbtScalaModule` helper trait, to conveniently set up the default source/test locations for builds using SBT project layout
Also split out plain-old-Scala-logic in `Lib` from inheritable traits in `ScalaModule`, since `ScalaModule` was getting a bit unwieldy
Diffstat (limited to 'build.sc')
-rwxr-xr-x | build.sc | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -2,9 +2,8 @@ import ammonite.ops._ import mill._ import mill.scalaplugin._ -trait MillModule extends ScalaModule{ outer => +trait MillModule extends SbtScalaModule{ outer => def scalaVersion = "2.12.4" - override def sources = basePath/'src/'main/'scala override def compileIvyDeps = Seq(Dep("com.lihaoyi", "acyclic", "0.1.7")) override def scalacOptions = Seq("-P:acyclic:force") @@ -18,9 +17,7 @@ trait MillModule extends ScalaModule{ outer => override def projectDeps = if (this == Core.test) Seq(Core) else Seq(outer, Core.test) - def basePath = outer.basePath override def ivyDeps = Seq(Dep("com.lihaoyi", "utest", "0.6.0")) - override def sources = basePath/'src/'test/'scala def testFramework = "mill.UTestFramework" } } |