O'Reilly logo

Building Applications with Scala by Diego Pacheco

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Scala client

First, you will need to create a new project. Go to your file system and create a folder called rest-client. Then, create another folder inside rest-client called project. Inside project, you will need to add the following two files:

  • build.properties: This contains an SBT configuration, such as version
  • Plugins.sbt: This contains an SBT plugins configuration

Let's start with build.properties:

    sbt.version=0.13.11 

As you can see here, we are configuring this project to use SBT version 0.13.11. Now, we can move to the plugins file.

Configuring plugins.sbt

Your plugins.sbt file should look something like this:

 addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0") addSbtPlugin("com.github.mpeltonen" % "sbt-idea" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required