sbt plugins isn't picked up from submodules?

前端 未结 1 498
逝去的感伤
逝去的感伤 2021-01-02 12:01

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 pro

1条回答
  •  余生分开走
    2021-01-02 12:07

    Your plugin.sbt file is ignored because you cannot have a project subfolder in a sub-project of a multi-project build.

    In a multi-project build,

    • The .sbt files of the root project, and all .sbt files of all sub-projects, are all part of a single build definition. The settings defined in a sub-project are just automatically scoped to that project.

    • Since there is only one build definition, there is only one project to build that build definition, and that is in the project/ folder of the root project. All project/ folders of sub-projects will be ignored.

    In your case, moving your plugin.sbt to the build root project folder should make your plugin appear again.

    Furthermore, if you only work on the core project, instead of running sbt in core, you can run sbt in the root project and type project core to "move" (actually, scope everything you do) to the core sub-project.

    0 讨论(0)
提交回复
热议问题