- Clone the repository.
- Change directory into the cloned repository.
- Start
sbt
. - Publish to local Ivy repository with
publishLocal
.
First, edit build.sbt
to add the dependency:
libraryDependencies ++= Seq(
...
"au.com.agiledigital" %% "play2-health-checker" % "5.0.0"
...
)
Edit conf/application.conf
to add the dependency:
play.modules.enabled += "au.com.agiledigital.healthchecker.HealthCheckerModule"
Finally, add a route to the health check controller into <conf/routes>:
# Wire in the health check controller
GET /hc au.com.agiledigital.healthchecker.controllers.HealthCheckController.checkHealth(serverErrorOnFailure: Boolean ?= true)