top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between build.sbt and build.scala?

+1 vote
379 views
What is the difference between build.sbt and build.scala?
posted Jun 28, 2016 by Shivam Kumar Pandey
Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

First understand this example -

build.sbt:

name := "hello"

version := "1.0"

Above is a shorthand notation roughly equivalent to this project/Build.scala:

import sbt._
import Keys._

object Build extends Build {
  lazy val root = Project(id = "root", base = file(".")).settings(
    name := "hello",
    version := "1.0"      
  )
}

Now I thinks it makes clear that when .sbt's are being compiled, they are before that sort of merged with the .scala files inside project directory.

Credit: http://stackoverflow.com/questions/18000103/what-is-the-difference-between-build-sbt-and-build-scala

answer Jun 29, 2016 by Salil Agrawal

Your answer

Preview

Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Similar Questions
0 votes

Explain the main difference between List and Stream in Scala Collection API? How do we prove that difference? When do we choose Stream?

+3 votes

Which build tool is the best for Scala? What are the pros and cons of each of them? How to I determine which one of them to use in a project?

...