Why is my sbt project dependency not working? (insists on trying to get it remotely)

I want to have a bridge for Scala.js and Snap.svg in the sbt project, but also a demo code for the bridge.

When executed, demos/compilesbt starts saying that it cannot resolve the dependency. It looks like he is trying to get to the bridge, as if this is a public external project, but he is right here and he is compiling.

What am I doing wrong?

Deleting publication-related files does not seem to change.

Directory structure:

β”œβ”€β”€ build.sbt
β”œβ”€β”€ project
β”‚ β”œβ”€β”€ (PublishToBintray.scala)
β”‚ β”œβ”€β”€ build.properties
β”‚ β”œβ”€β”€ build.sbt
β”‚ β”œβ”€β”€ project
β”‚ β”‚ └── ...
β”‚ └── target
β”‚ β”‚ └── ...
β”œβ”€β”€ (publishing.sbt)
β”œβ”€β”€ scalajs_demos
β”‚ β”œβ”€β”€ main
β”‚ β”‚ └── scala
β”‚ β”‚ └── clock.scala
β”‚ └── target
β”‚ └── ...
β”œβ”€β”€ src
β”‚ └── main
β”‚ └── scala
β”‚ └── org
β”‚ └── scalajs
β”‚ └── snapsvg
β”‚ β”œβ”€β”€ SnapSvg.scala
β”‚ └── package.scala
└── target
    └── ...

build.sbt:

scalaJSSettings

name := "Scala.js Snap.svg"

normalizedName := "scalajs-snapsvg"

version := "0.01"

organization := "org.scala-lang.modules.scalajs"

scalaVersion := "2.11.1"

crossScalaVersions := Seq("2.10.4", "2.11.1")   // note: not tested with 2.10.x

libraryDependencies +=
  "org.scala-lang.modules.scalajs" %%% "scalajs-dom" % "0.6"   // TBD: probably need it, just like jQuery bridge does

ScalaJSKeys.jsDependencies +=
  "org.webjars" % "Snap.svg" % "0.3.0" / "snap.svg.js"

homepage := Some(url("http://snapsvg.io/"))

licenses += ("Apache 2.0", url("https://github.com/adobe-webplatform/Snap.svg/blob/master/LICENSE"))

//---
// bridge (main) project
//
lazy val bridge = project.in( file(".") )

//---
// demos project
//
lazy val demos = project.in( file("scalajs_demos") ).dependsOn(bridge)

What is wrong with sbt:

> demos / compile
[info] Updating {file: / Users / asko / Hg / scala-js-snapsvg /} demos ...
[info] Resolving org.scala-lang.modules.scalajs # scalajs-snapsvg_sjs0.5_2.10; 0.01 ...
[warn] module not found: org.scala-lang.modules.scalajs # scalajs-snapsvg_sjs0.5_2.10; 0.01
[warn] ==== local: tried
[warn] /Users/asko/.ivy2/local/org.scala-lang.modules.scalajs/scalajs-snapsvg_sjs0.5_2.10/0.01/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/scala-lang/modules/scalajs/scalajs-snapsvg_sjs0.5_2.10/0.01/scalajs-snapsvg_sjs0.5_2.10-0.01.pom
[info] Resolving org.fusesource.jansi # jansi; 1.4 ...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.scala-lang.modules.scalajs#scalajs-snapsvg_sjs0.5_2.10;0.01: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last demos/*:update for the full output.
[error] (demos/*:update) sbt.ResolveException: unresolved dependency: org.scala-lang.modules.scalajs#scalajs-snapsvg_sjs0.5_2.10;0.01: not found
[error] Total time: 0 s, completed 27.7.2014 22:57:22
> 

, project/plugins.sbt:

addSbtPlugin("org.scala-lang.modules.scalajs" % "scalajs-sbt-plugin" % "0.5.0")
+4
1

, bridge scalaVersion := "2.11.1" ( build.sbt, demos scalaVersion ( 2.10.2 sbt 0.13, IIRC). dependsOn , scalaVersions. . : https://github.com/sbt/sbt/issues/1448

, , scalaVersion := "2.11.1" build.sbt . , , . ( bridge). ( , ) settings() demos, scalajs_demos/build.sbt.

+10

All Articles