Skip to content

lolgab/mill-guardrail

Folders and files

NameName
Last commit message
Last commit date
Jul 6, 2023
Jul 6, 2023
Jul 6, 2023
Jul 9, 2023
Jul 9, 2023
Jul 9, 2023
Jul 6, 2023
Jul 6, 2023
Jul 6, 2023
Jul 6, 2023
Jul 6, 2023
Jul 6, 2023
Jul 6, 2023
Jul 9, 2023
Jul 6, 2023
Jul 6, 2023

Repository files navigation

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