Port of the Guardrail Sbt Plugin
After importing it in the build.sc
file:
import $ivy.`com.github.lolgab::mill-guardrail::x.y.z`
import com.github.lolgab.mill.guardrail._
this plugin can be mixed in a ScalaModule
defining the guardrailTasks
target:
object server extends ScalaModule with Guardrail {
def guardrailTasks = T.input {
Seq(
ScalaServer(
PathRef(T.workspace / "server.yml"),
pkg = "com.example.server",
framework = "http4s"
)
)
}
// ... other settings
}
- First version