From b3298bbbd3723e733a24510c4da00de476a94920 Mon Sep 17 00:00:00 2001 From: Andrea Date: Fri, 17 Apr 2015 14:24:10 +0200 Subject: [PATCH] Fix: unable to 'sbt run', No main class detected #76 --- project/ScalaBuffBuild.scala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/project/ScalaBuffBuild.scala b/project/ScalaBuffBuild.scala index c93ecd8..ee71f88 100644 --- a/project/ScalaBuffBuild.scala +++ b/project/ScalaBuffBuild.scala @@ -90,7 +90,13 @@ object ScalaBuffBuild extends Build { settings = defaultSettings ) - val root = project.in(file(".")) settings (publish := {}) aggregate(compilerProject, runtimeProject) + lazy val root = project.in(file(".")). + settings(publish := {}). + settings( + mainClass in (Compile, run) := Some("net.sandrogrzicic.scalabuff.compiler.ScalaBuff") + ). + aggregate(compilerProject, runtimeProject). + dependsOn(compilerProject) }