Skip to content

lolgab/mill-guardrail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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