From 02455ac5105a9bf542ef09e6f495fb9065ca493e Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Sat, 16 Dec 2017 23:52:30 -0800 Subject: Allow top-level targets in build files by configuring Ammonite's `codeWrapper` to inherit from `mill.Module` --- build.sc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build.sc') diff --git a/build.sc b/build.sc index c7a16754..9fee9ebe 100755 --- a/build.sc +++ b/build.sc @@ -115,6 +115,9 @@ object ScalaPlugin extends MillModule { } +def runThing = T{ + println("Hello!") +} object Bin extends MillModule { def projectDeps = Seq(ScalaPlugin) -- cgit v1.2.3