I'm trying to convert a single module project into two modules with a root aggregate. Feels like a normal thing to do.
So, to simplify I have removed the second project that I added, but I do something like:
cd myproject
mkdir core
mv * core
and then add a build.sbt in myproject like
lazy val root = project.in( file(".") ).aggregate(core)
lazy val core = project in file("core")
However, trying to build core I get:
[myproject]/core/build.sbt:22: error: not found: value lessSettings seq(lessSettings:_*)
which is the settings for a plugin added in project/plugins.sbt of the original project now in
[myproject]/core/project/plugins.sbt
How come this is not picked up? Can't I have plugins living only in submodules? cd:ing into core submodule and running sbt it works just fine. Do I have to move my plugins to root/project? Pretty please, it can't be so?