Here is how I currently set up a PlayFramework project for use with mill
:
/path/to/play-scala-seed-mill/
and cd into that folder.build.sc
file in this folder, according to the instructions in the official documentation for PlayFramework support.sbt new playframework/play-scala-seed.g8
as per Play's official documentation. Is there a more mill
-ish way to do this? /path/to/play-scala-seed-mill/
as a result of the above command.mill mill.scalalib.GenIdea/idea
.How can I do this without using SBT?
To start a new Mill project without any SBT, I can think of these two possibilities:
Start from scratch
I usually start with an empty folder and add an empty build.sc
.
To setup the few needed folders and configurations is sometime faster than to remove all the stuff not needed in the Template.
Create your own Giter8 Template
If you start a lot of Projects - you can create your own Giter8 Template.
This is straight forward and there is also a command-line tool that works without sbt.
For example:
g8 playframework/play-scala-seed.g8
Creates the Play Template you already used.
See here for more information: http://www.foundweekends.org/giter8/