diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-12 11:28:52 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-12 11:28:52 -0800 |
commit | b12c3f0f040a2b6caf1f94ad789d80b91313e381 (patch) | |
tree | 977a108a79d4b512e86680d058b411d919e04c6b /build.sc | |
parent | de3f16918dc5b5af6cb8bf226f3aa80ef8879bba (diff) | |
download | mill-b12c3f0f040a2b6caf1f94ad789d80b91313e381.tar.gz mill-b12c3f0f040a2b6caf1f94ad789d80b91313e381.tar.bz2 mill-b12c3f0f040a2b6caf1f94ad789d80b91313e381.zip |
Rename out `Task.path` to `Task.source`, use it more aggressively to get `amm -w` watch-n-rebuild functionality working on `build.sc`
Diffstat (limited to 'build.sc')
-rwxr-xr-x | build.sc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4,7 +4,7 @@ import ammonite.ops.pwd import mill._ import mill.scalaplugin.{Subproject, Dep, TestRunner} -@main def main(args: String*) = mill.Main(args, Build) +@main def main(args: String*) = mill.Main(args, Build, interp.watch) object Build{ trait MillSubproject extends Subproject{ def scalaVersion = "2.12.4" @@ -26,12 +26,12 @@ object Build{ ) def basePath = pwd / 'core - override def sources = PathRef(pwd/'core/'src/'main/'scala) + override def sources = pwd/'core/'src/'main/'scala } object CoreTests extends MillSubproject { override def projectDeps = Seq(Core) def basePath = pwd / 'scalaplugin - override def sources = PathRef(pwd/'core/'src/'test/'scala) + override def sources = pwd/'core/'src/'test/'scala override def ivyDeps = Seq( Dep("com.lihaoyi", "utest", "0.6.0") ) @@ -48,7 +48,7 @@ object Build{ object ScalaPlugin extends MillSubproject { override def projectDeps = Seq(Core) def basePath = pwd / 'scalaplugin - override def sources = PathRef(pwd/'scalaplugin/'src/'main/'scala) + override def sources = pwd/'scalaplugin/'src/'main/'scala } } |