Install Bobby

~/.sbt/0.13/plugins/build.sbt

resolvers += Resolver.url( "hmrc-sbt-plugin-releases",
	url("https://dl.bintray.com/hmrc/sbt-plugin-releases")
)(Resolver.ivyStylePatterns)

addSbtPlugin("uk.gov.hmrc" % "sbt-bobby" % "0.30.0")
sbt validate

Configure Bobby

~/.sbt/bobby.conf
deprecated-dependencies = https://some-url/bobby-deprecated.json
deprecated-dependencies = file:///~/.sbt/bobby-deprecated.json
~/.sbt/bobby-deprecated.json

{
  "libraries":[
	 {
	  "organisation": "com.example",
	  "name": "mylibrary",
	  "range": "(,6.0.0)",
	  "reason": "Security vulnerability before v6",
	  "from": "2016-06-23"
	 }
  ],
  "plugins":[]
}

Blacklist versions

Range Meaning
(,1.0.0] Has to be newer than 1.0.0
[1.0.0] Can't use v1.0.0
[1.2.0,1.3.0] 1.2.0 <= x <= 1.3.0
[1.0.0,2.0.0) 1.0.0 <= x < 2.0.0
[1.5.0,) Has to be older than 1.5.0
[*-SNAPSHOT] No SNAPSHOTs

Build fail

Jenkins DSL


import javaposse.jobdsl.dsl.DslFactory
import uk.gov.hmrc.jenkinsjobs.domain.builder.SbtMicroserviceJobBuilder

new SbtMicroserviceJobBuilder('myamazeballs-service').
    withScalaStyle().
    withSCoverage().
   build(this as DslFactory)
./gradlew clean test
Seed job to activate