https://github.com/lolgab/mill-guardrail
Mill Plugin for Guardrail
https://github.com/lolgab/mill-guardrail
mill-plugin
Last synced: 8 months ago
JSON representation
Mill Plugin for Guardrail
- Host: GitHub
- URL: https://github.com/lolgab/mill-guardrail
- Owner: lolgab
- License: apache-2.0
- Created: 2023-07-06T15:51:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-09T09:14:13.000Z (almost 3 years ago)
- Last Synced: 2024-12-04T17:09:48.531Z (over 1 year ago)
- Topics: mill-plugin
- Language: Scala
- Homepage: https://lolgab.github.io/mill-guardrail/
- Size: 27.3 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Guardrail Mill Plugin
Port of the [Guardrail Sbt Plugin](https://github.com/guardrail-dev/guardrail)
## Getting Started
After importing it in the `build.sc` file:
```scala
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:
```scala
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