7mind / sbtgen

SBT project generator for flexible monorepo flow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generate project structure for new artifact in build file

ratoshniuk opened this issue · comments

Once I defined new artifact it would be fantastic to generate all necessary folders for further project

we should know

  • organisation (root package)
  • folders for plugins (we define them in OppinionatedDIApp, but could also create sbt plugin Key like (pluginsFolders)

and after re-import sbt we could retrieve follow ierarchy
artifact-name

  • src
    --main
    ---scala
    ----organisation
    ----organisation + plugins-folder
    ---resources
    --test
    ---resources
    ---scala
    ----organisation
    ----organisation + plugins

What do you think, @pshirshov @Kaishh ?

There is a stub functionality you may use.

newModule / newStub

commented

You can make a giter8 template and use it with sbt init