Sbt does not resolve dependencies with classifiers. #285

Closed
harrah opened this Issue Jan 5, 2013 · 1 comment

Projects

None yet

1 participant

@harrah
Owner
harrah commented Jan 5, 2013

There are multiple problems here. First of all, having "org.lwjgl.lwjgl" % "lwjgl-platform" % lwjglVersion" should be enough to download all the artifacts. But it does not work.

Having failed that, manually putting all the artifact as a dependencies also fails, because only one of those is downloaded and the rest is ignored. The choise appears to be arbitrary.
Surpisingly listing only one artifact works.

Here is the build:

import sbt._
import Keys._

object MyBuild extends Build {

val lwjglVersion = "2.8.2"

lazy val broken = Project(
id = "broken",
base = file("."),
settings = Defaults.defaultSettings ++ Seq(
scalaVersion := "2.9.1",
target := new File("target/broken"),
libraryDependencies += "org.lwjgl.lwjgl" % "lwjgl-platform" % lwjglVersion classifier "natives-windows",
libraryDependencies += "org.lwjgl.lwjgl" % "lwjgl-platform" % lwjglVersion classifier "natives-linux",
libraryDependencies += "org.lwjgl.lwjgl" % "lwjgl-platform" % lwjglVersion classifier "natives-osx"
)
)

lazy val working = Project(
id = "working",
base = file("."),
settings = Defaults.defaultSettings ++ Seq(
scalaVersion := "2.9.1",
target := new File("target/working"),
libraryDependencies += "org.lwjgl.lwjgl" % "lwjgl-platform" % lwjglVersion classifier "natives-linux"
)
)
}

@harrah
Owner
harrah commented Jan 5, 2013

IMPORTANT This project has moved to https://github.com/sbt/sbt. This issue still exists to avoid dead links, but GitHub limitations prevent the original issue from being correctly preserved here. Please see sbt/sbt#285 for the full issue and to comment.

@harrah harrah closed this Jan 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment