From 7b4ced648ecd9b79b3a16d67552f0bb69f4dd543 Mon Sep 17 00:00:00 2001 From: David Gregory Date: Wed, 31 Oct 2018 20:44:53 +0000 Subject: Add tut contrib module (#464) * Add tut contrib module * Add TutModule tests and documentation * Use Path instead of PathRef for tut target directory * Use the correct scala version in TutModule * Ensure resolving tut doesn't bring in extra scala-library jars * Ensure MILL_VERSION system property is set in tut tests * Fork to run tut to fix classpath problems, add test with library usage * Follow convention w.r.t. publishVersion in testArgs * Add Scaladoc to TutModule * Don't supply a default version of Tut * Update docs to account for mandatory tutVersion setting * Inline tutArgs, otherwise Tut does not recompile when sources change --- build.sc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build.sc') diff --git a/build.sc b/build.sc index aa1cf428..878f5613 100755 --- a/build.sc +++ b/build.sc @@ -250,6 +250,10 @@ object contrib extends MillModule { } } + object tut extends MillModule { + def moduleDeps = Seq(scalalib) + def testArgs = Seq("-DMILL_VERSION=" + build.publishVersion()._2) + } } @@ -362,7 +366,7 @@ def launcherScript(shellJvmArgs: Seq[String], } object dev extends MillModule{ - def moduleDeps = Seq(scalalib, scalajslib, scalanativelib, contrib.scalapblib) + def moduleDeps = Seq(scalalib, scalajslib, scalanativelib, contrib.scalapblib, contrib.tut) def forkArgs = ( -- cgit v1.2.3