Giter Site home page Giter Site logo

prismaclouddevsecopsscanner / alphagov-dropwizard-scala Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alphagov/dropwizard-scala

0.0 0.0 0.0 423 KB

Opinionated wrapper and convenience classes for providing a scala-ified Dropwizard microservices.

Java 5.72% Scala 94.28%

alphagov-dropwizard-scala's Introduction

Dropwizard Scala Build Status

An opinionated wrapper and convenience classes for providing a scala-ified dropwizard setup.

To add Dropwizard Scala to your project with sbt, add the following lines to your build.sbt:

resolvers += "OJO Snapshots" at "https://oss.jfrog.org/oss-snapshot-local/",
// resolvers += "OJO Releases" at "https://oss.jfrog.org/oss-release-local/"
libraryDependencies += "uk.gov.gds" %% "dropwizard-scala" % "1.0.0-SNAPSHOT"

Health Checks

Dropwizard Scala adds a number of new Dropwizard health checks you may find useful for your project, including:

Build Info Health Check

The build info health check displays the implementation version of the local manifest as the build number.

To use simply pass in the Package object of your micro-service class:

healthChecks(
  environment,
  List(
    new BuildInfoHealthCheck(getClass.getPackage)
  )
)

You can customise the implementation version of manifests generated by SBT by adding something like the following to your build.sbt file:

import sbt.Package.ManifestAttributes
packageOptions := Seq(ManifestAttributes(("Implementation-Version", "BUILDNUMBER")))

Publishing

Ensure the following credentials at ~/.ivy2/.credentials:

realm=Artifactory Realm
host=oss.jfrog.org
user=gds
password=<revoked>

Then in your local Dropwizard Scala folder execute the following

sbt publish

Note Be careful what plugins you have installed in your .sbt/0.13/plugins.sbt or .sbt/plugins.sbt files as these can be included as dependencies in the generated POM.

alphagov-dropwizard-scala's People

Contributors

gwaggott avatar kouphax avatar opyate avatar rgladwell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.