sbt

You will need to add Lightbend-provided credentials to your [sbt] build and deployment to enable the full capabilities of Lightbend Platform.

Required sbt version

Make sure that your project is using an sbt version of 0.13.7 or higher. Set the sbt version in project/build.properties:

sbt.version=1.2.8

Bintray credentials

As a subscriber, access your credentials by logging into Lightbend’s Customer Portal. Otherwise, please contact Lightbend to try out Lightbend Platform.

Once you have retrieved the credentials, put them in a file:

  • for Linux or Mac: ~/.lightbend/commercial.credentials
  • for Windows: %HOMEPATH%\.lightbend\commercial.credentials

the contents of which should look like

realm = Bintray
host = dl.bintray.com
user = <your username>
password = <your password>

or if you are using coursier:

realm = Bintray
host = repo.lightbend.com
user = <your username>
password = <your password>

Lightbend Commercial Releases repository

Next add the following to your project/lightbend.sbt sbt plugins:

credentials += Credentials(Path.userHome / ".lightbend" / "commercial.credentials")
resolvers += "com-mvn" at "https://repo.lightbend.com/commercial-releases/"
resolvers += Resolver.url("com-ivy",
  url("https://repo.lightbend.com/commercial-releases/"))(Resolver.ivyStylePatterns)

In addition, add the following settings to any of the subprojects you add Lightbend Platform component:

credentials += Credentials(Path.userHome / ".lightbend" / "commercial.credentials")
resolvers += "com-mvn" at "https://repo.lightbend.com/commercial-releases/"
resolvers += Resolver.url("com-ivy",
  url("https://repo.lightbend.com/commercial-releases/"))(Resolver.ivyStylePatterns)