The sbt-idea module works with the multi-module sbt project. We used it from a place somewhere around sbt-0.10.0 and are currently located in sbt-0.11.2. It looks like you have the dependent part of the build file configured normally, so here is an example of how we do the project setup from the full Build.scala specification file:
object Vcaf extends Build { import Resolvers._ import Dependencies._ import BuildSettings._ lazy val vcafDb = Project( id = "vcaf-db", base = file("./vcaf-db"), dependencies = Seq(), settings = buildSettings ++ /* proguard */ SbtOneJar.oneJarSettings ++ Seq(libraryDependencies := dbDeps, resolvers := cseResolvers) ) lazy val vcaf = Project( "vcaf", file("."), dependencies = Seq(vcafDb), aggregate = Seq(vcafDb), settings = buildSettings ++ Seq(libraryDependencies := vcafDeps, resolvers := cseResolvers) ++ webSettings ) }
In this example, the vcaf-db project is located in a folder in the vcaf project folder. The vcaf-db project does not have its own build.sbt or Build.scala file. You will notice that we indicate library dependencies for each project, which may or may not be your missing link.
As mentioned in ChrisJamesC, you need to “reboot” from SBT (or exit sbt and return) to get changes to the assembly definition. After reloading the project, you can make "gen-idea no-classifiers no-sbt-classifiers" and get the intellij project, which has the main project, modules and access to the library, as defined in the assembly file.
Hope this helps!
source share