sbtgen icon indicating copy to clipboard operation
sbtgen copied to clipboard

Generate project structure for new artifact in build file

Open ratoshniuk opened this issue 6 years ago • 3 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

ratoshniuk avatar Feb 10 '19 11:02 ratoshniuk

What do you think, @pshirshov @kaishh ?

ratoshniuk avatar Feb 10 '19 11:02 ratoshniuk

There is a stub functionality you may use.

newModule / newStub

pshirshov avatar Feb 10 '19 12:02 pshirshov

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

neko-kai avatar Feb 10 '19 14:02 neko-kai