summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-04-07 19:19:29 -0700
committerLi Haoyi <haoyi.sg@gmail.com>2018-04-07 19:19:29 -0700
commit19021b773438e24da47f6d0e94e69e5f58625cac (patch)
tree470a3c5d7e8fdd864e6487a13ac13ac88a289fd8 /build.sc
parent9598b243d7c5108a99fd98860810f71f6302aec1 (diff)
parent9c0564f6c86fdd1b2b0d26fc339e4066296f6781 (diff)
downloadmill-19021b773438e24da47f6d0e94e69e5f58625cac.tar.gz
mill-19021b773438e24da47f6d0e94e69e5f58625cac.tar.bz2
mill-19021b773438e24da47f6d0e94e69e5f58625cac.zip
Merge branch 'master' into client-java
Diffstat (limited to 'build.sc')
-rwxr-xr-xbuild.sc11
1 files changed, 6 insertions, 5 deletions
diff --git a/build.sc b/build.sc
index 1890edf2..ee5777c4 100755
--- a/build.sc
+++ b/build.sc
@@ -11,7 +11,7 @@ import publish._
import mill.modules.Jvm.createAssembly
import upickle.Js
trait MillPublishModule extends PublishModule{
- def scalaVersion = "2.12.4"
+
def artifactName = "mill-" + super.artifactName()
def publishVersion = build.publishVersion()._2
@@ -27,17 +27,18 @@ trait MillPublishModule extends PublishModule{
)
def javacOptions = Seq("-source", "1.8", "-target", "1.8")
-
}
-object moduledefs extends MillPublishModule{
+
+object moduledefs extends MillPublishModule with ScalaModule{
+ def scalaVersion = T{ "2.12.4" }
def ivyDeps = Agg(
ivy"org.scala-lang:scala-compiler:${scalaVersion()}",
ivy"com.lihaoyi::sourcecode:0.1.4"
)
}
-trait MillModule extends MillPublishModule{ outer =>
-
+trait MillModule extends MillPublishModule with ScalaModule{ outer =>
+ def scalaVersion = T{ "2.12.4" }
def compileIvyDeps = Agg(ivy"com.lihaoyi::acyclic:0.1.7")
def scalacOptions = Seq("-P:acyclic:force")
def scalacPluginIvyDeps = Agg(ivy"com.lihaoyi::acyclic:0.1.7")