Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between project/build.sbt and project/BuildApp.scala?

Tags:

sbt

What's the difference between project/build.sbt and project/BuildApp.scala? Can I create any of them interchangeably?

like image 701
Incerteza Avatar asked Dec 29 '13 08:12

Incerteza


People also ask

What is the difference between Scala and sbt?

If you call scala, you will get whatever scala version is installed on the path of your operating system. If you call sbt console, you get the scala version configured in the sbt build (build. sbt) with all libraries that are used in the build already on the classpath.

What is build sbt in Scala?

sbt is a popular tool for compiling, running, and testing Scala projects of any size. Using a build tool such as sbt (or Maven/Gradle) becomes essential once you create projects with dependencies or more than one code file.

What is build sbt?

sbt is an open-source build tool for Scala and Java projects, similar to Apache's Maven and Ant. Its main features are: Native support for compiling Scala code and integrating with many Scala test frameworks. Continuous compilation, testing, and deployment.

Do I need sbt for Scala?

No you don't need it. sbt will download Scala for you. If you install sbt-extras (basically just a script) you don't even need to download sbt : it will automatically download the sbt launcher you need.


1 Answers

First, equivalent to project/BuildApp.scala is build.sbt, not project/build.sbt. They are different in what they allow: .scala lets you do things .sbt doesn't, and they can be used together.

like image 100
Alexey Romanov Avatar answered Oct 05 '22 09:10

Alexey Romanov