Take the 2-minute tour ×

Often I come across some instructions which tell me how to add a SBT tool to build.sbt, but actually I have a Build.scala, not a build.sbt. So I want to know how to do the same in my Build.scala?

The particular case that is causing me trouble is Coffeescript SBT which has instructions for how to add it to a build.sbt. However I don't have a built.sbt, I have a Build.scala, so I don't know what to do.

The code referenced here also helps to solve this problem.

share|improve this question
This question cannot be answered without more information about your Build.scala. Please provide it if possible. –  Daniel C. Sobral Jan 20 '12 at 12:20
Also, you can use build.sbt and Build.scala at the same time. –  Daniel C. Sobral Jan 20 '12 at 12:20

2 Answers 2

up vote 5 down vote accepted

Two options:

  1. Go ahead and create build.sbt with the line given in the CoffeeScript instructions. It can coexist with Build.scala.

  2. In Build.scala, find the "settings" line within the project and add ++ coffeeSettings to it. You may also need import coffeescript.Plugin.coffeeSettings at the top.

share|improve this answer
This worked for me. Where I have the ... = Project( ... settings = I added the coffeeSettings joined with other ones by the ++. Thanks –  Phil Jan 21 '12 at 8:15

Generally I still use plugins.sbt in projects that use Build.scala for their main configuration.

Just add project/plugins.sbt with the resolver and addSbtPlugin lines.you need.

share|improve this answer

Your Answer


