sbt-0.13

sbt not resolving dependency; path correct except ${package.type} extension

家住魔仙堡 提交于 2019-12-23 02:36:37
问题 sbt (0.13.8) is failing to resolve the dependency in the following extremely simple build.sbt : organization := "edu.umass.cs.iesl" name := "nn-depparse" version := "0.1-SNAPSHOT" scalaVersion := "2.11.7" resolvers += "IESL snapshot repository" at "https://dev-iesl.cs.umass.edu/nexus/content/repositories/snapshots/" libraryDependencies += "cc.factorie" %% "factorie" % "1.2-SNAPSHOT" parallelExecution := true For some reason it resolves the following path: https://dev-iesl.cs.umass.edu/nexus

SBT Scala cross versions, with aggregation and dependencies

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 17:37:33
问题 I am struggling with how crossScalaVersions works with subprojects. I have a project that compiles with 2.10 (foo) and a project that compiles with 2.11 (bar). They share a cross compiled project (common). How can I compile projects foo and bar? build.sbt lazy val root = (project in file(".")).aggregate(foo, bar).settings( crossScalaVersions := Seq("2.10.4", "2.11.4") ) lazy val foo = (project in file("foo")).dependsOn(common).settings( crossScalaVersions := Seq("2.10.4"), scalaVersion := "2

How to have SBT subproject with multiple Scala versions?

て烟熏妆下的殇ゞ 提交于 2019-12-09 04:41:08
问题 I have a project using Scala 2.10 and one using Scala 2.11. They depend on a common project, which can compile with both. lazy val foo = (project in file("foo")).dependsOn(baz).settings( scalaVersion := "2.10.4" ) lazy val bar = (project in file("bar")).dependsOn(baz).settings( scalaVersion := "2.11.4" ) lazy val baz = (project in file("baz")).settings( crossScalaVersions := Seq("2.10.4", "2.11.4"), scalaVersion := "2.10.4" ) And then $ sbt bar/update [info] Updating {file:/home/paul/Private

SBT 0.13.8 what does the SettingKey.~= method do

荒凉一梦 提交于 2019-12-08 04:12:13
问题 The SettingKey.~= method is used to exclude dependencies from libraryDependencies (see play 2.3.8 sbt excluding logback), but trying to find out what it does is hard as: There is no documentation about this function at http://www.scala-sbt.org/0.13.12/api/index.html#sbt.SettingKey, It cannot be searched using Google as it uses symbols in the method name and Examination of the SBT source code (https://github.com/sbt/sbt/blob/0.13/main/settings/src/main/scala/sbt/Structure.scala#L47) does not

How to exclude transitive dependencies of other subproject in multiproject builds?

萝らか妹 提交于 2019-11-28 07:31:35
In Build.scala I have a dependency between projects: val coreLib = Projects.coreLib() val consoleApp = Projects.consoleApp().dependsOn(coreLib) val androidApp = Projects.androidProject().dependsOn(coreLib/*, exclusions = xpp */) Core library project defines a library in its libraryDependencies (XPP parser), which I want to exclude in androidApp , since Android framework have its own XPP implementation out of the box. How can I exclude XPP library from transitive dependencies of coreLib in androidApp project? EDIT: According to my research exclusion is possible ONLY to ModuleID which is used in

How to exclude transitive dependencies of other subproject in multiproject builds?

允我心安 提交于 2019-11-27 01:50:04
问题 In Build.scala I have a dependency between projects: val coreLib = Projects.coreLib() val consoleApp = Projects.consoleApp().dependsOn(coreLib) val androidApp = Projects.androidProject().dependsOn(coreLib/*, exclusions = xpp */) Core library project defines a library in its libraryDependencies (XPP parser), which I want to exclude in androidApp , since Android framework have its own XPP implementation out of the box. How can I exclude XPP library from transitive dependencies of coreLib in