Reputation: 21690
Given a subproject, how do I run a main class of that project as a dependency of another subproject?
Upvotes: 3
Views: 1465
Reputation: 837
Add this to your sbt
// set the main class for 'sbt run'
mainClass in (Compile, run) := Some("com.Foo")
Or this from cmd:
$ sbt "run-main com.Foo"
Upvotes: 1