I chose mill as a build tool
mill has more intuitive syntax and faster build speed than sbt. and support for intelliJ is also great.
brew install mill
Mill supports IntelliJ by default. Use
mill mill.scalalib.GenIdea/idea
to generate an IntelliJ project config for your build. This also configures IntelliJ to allow easy navigate & code-completion within your build file itself.
mill mill.scalalib.GenIdea/idea
mill --watch channel.run
mill --watch channel.test