{"issue":{"state":"open","created_at":"2011-11-29T20:26:28Z","updated_at":"2011-12-04T15:25:08Z","comments":7,"user":{"gravatar_id":"c15560a292c51a510f3feba8e96d5b56","id":1201299,"url":"https://api.github.com/users/Lexxn","login":"Lexxn","avatar_url":"https://secure.gravatar.com/avatar/c15560a292c51a510f3feba8e96d5b56?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"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.\r\n\r\nHaving 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.\r\nSurpisingly listing only one artifact works.\r\n\r\nHere is the build:\r\n\r\n\r\nimport sbt._\r\nimport Keys._\r\n\r\n\r\nobject MyBuild extends Build {\r\n \r\n  val lwjglVersion = \"2.8.2\"\r\n  \r\n  lazy val broken = Project(\r\n    id = \"broken\",\r\n    base = file(\".\"),\r\n    settings = Defaults.defaultSettings ++ Seq(\r\n      scalaVersion := \"2.9.1\",\r\n      target := new File(\"target/broken\"),\r\n      libraryDependencies += \"org.lwjgl.lwjgl\" % \"lwjgl-platform\" % lwjglVersion classifier \"natives-windows\",\r\n      libraryDependencies += \"org.lwjgl.lwjgl\" % \"lwjgl-platform\" % lwjglVersion classifier \"natives-linux\",\r\n      libraryDependencies += \"org.lwjgl.lwjgl\" % \"lwjgl-platform\" % lwjglVersion classifier \"natives-osx\"\r\n    )\r\n  )\r\n  \r\n  lazy val working = Project(\r\n    id = \"working\",\r\n    base = file(\".\"),\r\n    settings = Defaults.defaultSettings ++ Seq(\r\n      scalaVersion := \"2.9.1\",\r\n      target := new File(\"target/working\"),\r\n      libraryDependencies += \"org.lwjgl.lwjgl\" % \"lwjgl-platform\" % lwjglVersion classifier \"natives-linux\"\r\n    )\r\n  )\r\n}","assignee":null,"id":2392272,"labels":[],"number":285,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Sbt does not resolve dependencies with classifiers.","closed_at":null,"html_url":"https://github.com/harrah/xsbt/issues/285","url":"https://api.github.com/repos/harrah/xsbt/issues/285","milestone":null},"action":"created","comment":{"created_at":"2011-12-04T15:25:08Z","updated_at":"2011-12-04T15:25:08Z","user":{"gravatar_id":"c9e8de1be98d66ac0eb22fd7473aa263","id":72742,"url":"https://api.github.com/users/harrah","login":"harrah","avatar_url":"https://secure.gravatar.com/avatar/c9e8de1be98d66ac0eb22fd7473aa263?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Ok, the equivalent inline syntax is:\r\n\r\n```scala\r\nlibraryDependencies += \r\n  \"org.lwjgl.lwjgl\" % \"lwjgl-platform\" % lwjglVersion classifier \"natives-windows\" classifier \"natives-linux\" classifier \"natives-osx\"\r\n```\r\n\r\nIf this works, I propose that the solution to this issue is to mention this in the documentation.","id":3006907,"url":"https://api.github.com/repos/harrah/xsbt/issues/comments/3006907"}}