Why does SBT want to get org.scala-sbt while it is already installed?

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#sbt;0.13.5!sbt.jar (7322ms)

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!

+4
source share
1 answer

Why does sbt need to download the package again from itself?

SBT, JAR SBT. , , script, , SBT, , , .

+7

All Articles