lolgab / mill-guardrail   0.0.2

Apache License 2.0 Website GitHub

Mill Plugin for Guardrail

Scala versions: 2.13
{Artifact, BinaryVersion, Project, Version, UserState, Env} Mill plugins: 0.11

Guardrail Mill Plugin

Port of the Guardrail Sbt Plugin

Getting Started

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
}

Changelog

0.0.1

  • First version