I installed sbtusing brew install sbton Mac OS.
And the file build.sbtfor my application looks like this:
import NativePackagerKeys._
packageArchetype.java_application
name := """scala-getting-started"""
version := "1.0"
scalaVersion := "2.10.4"
libraryDependencies ++= Seq(
"com.twitter" % "finagle-http_2.10" % "6.18.0",
"postgresql" % "postgresql" % "9.0-801.jdbc4"
)
I really don't understand what sbtshould get the package org.scala-sbtif I want to compile the current application.
Hanfeis-MacBook-Pro:scala-getting-started hanfeisun$ sbt compile stage
Getting org.scala-sbt sbt 0.13.5 ...
downloading https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.5/jars/sbt.jar ...
[SUCCESSFUL ] org.scala-sbt
Should it org.scala-sbtalready be installed when I install sbton brew install sbt? Why do I sbtneed to download the package from myself again?
Does anyone have any ideas about this? Thank!
source
share