Twirl dependencies required for scalatra project using Gradle/Mill

91 views Asked by At

For a web application, I am using scalatra. Mill is my build tool of choice. To render UI, I am considering twirl template engine. However, all the examples/references that I have come through only show twirl using sbt.

What all twirl dependencies are required for a non-sbt project?

1

There are 1 answers

0
Tobias Roeser On BEST ANSWER

You might be interested in TwirlModule which is part of the mill-contrib-twirllib plugin. It handles compilation of twirl templates and configuration of imports and formats.

To get a list of twirl dependencies (used by mill) you can consult the TwirlModule.twirlClasspath target.

Agg(
  ivy"com.typesafe.play::twirl-compiler:${twirlVersion()}",
  ivy"org.scala-lang.modules::scala-parser-combinators:1.1.0"
)